diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-02-19 21:17:46 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-02-19 21:17:53 +0000 |
| commit | e62ef99244bb3aa906810a5cfd53c0dac68b0f37 (patch) | |
| tree | e7379e2add7014e7124f678f4a7a8edc699fe914 /lib/debug.moon | |
| parent | major refactoring: Const, Stream + ResultNode (diff) | |
| download | alive-e62ef99244bb3aa906810a5cfd53c0dac68b0f37.tar.gz alive-e62ef99244bb3aa906810a5cfd53c0dac68b0f37.zip | |
merge Const and Stream into Value; Dataflow logic
lib not fully ported / functonial
Diffstat (limited to 'lib/debug.moon')
| -rw-r--r-- | lib/debug.moon | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/debug.moon b/lib/debug.moon index f642c2e..08a7f78 100644 --- a/lib/debug.moon +++ b/lib/debug.moon @@ -3,10 +3,13 @@ import Op from require 'core' class out extends Op @doc: "(out name-str value) - log value to the console" - setup: (@name, @value) => + setup: (params) => + super params + assert @inputs[2], "need a value" + @assert_types 'str', @inputs[2].type - update: (dt) => - L\print "#{@name\unwrap 'str'}", @value\unwrap! + tick: => + L\print @unwrap_inputs! { :out |
