git.s-ol.nu alive / d7de122
add :metatype() fwd to Input s-ol 1 year, 9 months ago
2 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
7171 --- return the type name of this `Input` (optional).
7272 type: => @stream.type
7373
74 --- return the metatype name of this `Input` (optional).
75 metatype: => @stream.metatype
76
7477 --- the current value
7578 --
7679 -- @tfield ValueStream stream
2020
2121 it 'gives access to the type string', ->
2222 assert.is.equal stream.type, input\type!
23
24 it 'gives access to the metatype string', ->
25 assert.is.equal stream.metatype, input\metatype!
2326
2427 describe 'Input.cold', ->
2528 stream = ValueStream.num 1