Class: Interscript::DSL::Tests
- Inherits:
-
Object
- Object
- Interscript::DSL::Tests
- Defined in:
- lib/interscript/dsl/tests.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Tests
constructor
A new instance of Tests.
- #test(from, to, reverse_run: nil) ⇒ Object
Constructor Details
#initialize(&block) ⇒ Tests
Returns a new instance of Tests.
4 5 6 7 |
# File 'lib/interscript/dsl/tests.rb', line 4 def initialize(&block) @node = Interscript::Node::Tests.new self.instance_exec(&block) end |
Instance Attribute Details
#node ⇒ Object
Returns the value of attribute node.
2 3 4 |
# File 'lib/interscript/dsl/tests.rb', line 2 def node @node end |
Instance Method Details
#test(from, to, reverse_run: nil) ⇒ Object
9 10 11 |
# File 'lib/interscript/dsl/tests.rb', line 9 def test(from, to, reverse_run: nil) @node << [from, to, reverse_run] end |