Class: TestML::Assertion
- Inherits:
-
Object
- Object
- TestML::Assertion
- Defined in:
- lib/testml/runtime.rb
Overview
Instance Attribute Summary collapse
-
#expr ⇒ Object
Returns the value of attribute expr.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, expr = nil) ⇒ Assertion
constructor
A new instance of Assertion.
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 |