Class: Interscript::DSL::Tests

Inherits:
Object
  • Object
show all
Defined in:
lib/interscript/dsl/tests.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nodeObject

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