aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debug.moon
blob: 08a7f78614c793fa59219a9d66631051f6f29384 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Op from require 'core'

class out extends Op
  @doc: "(out name-str value) - log value to the console"

  setup: (params) =>
    super params
    assert @inputs[2], "need a value"
    @assert_types 'str', @inputs[2].type

  tick: =>
    L\print @unwrap_inputs!

{
  :out
}