Module: OutputStringBlock::DSLMethods
- Defined in:
- lib/blockly_interpreter/test_helper.rb
Instance Method Summary collapse
Instance Method Details
#string_output(content = nil, &proc) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/blockly_interpreter/test_helper.rb', line 14 def string_output(content = nil, &proc) block :string_output do value :VALUE do if block_given? instance_exec &proc else text content end end end end |