Class: TestML::Assertion

Inherits:
Object
  • Object
show all
Defined in:
lib/testml/runtime.rb

Overview


Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, expr = nil) ⇒ Assertion

Returns a new instance of Assertion.



330
331
332
333
# File 'lib/testml/runtime.rb', line 330

def initialize(name, expr=nil)
  @name = name
  @expr = expr if expr
end

Instance Attribute Details

#exprObject

Returns the value of attribute expr.



328
329
330
# File 'lib/testml/runtime.rb', line 328

def expr
  @expr
end

#nameObject

Returns the value of attribute name.



327
328
329
# File 'lib/testml/runtime.rb', line 327

def name
  @name
end