Class: TestML::Statement
- Inherits:
-
Object
- Object
- TestML::Statement
- Defined in:
- lib/testml/runtime.rb
Overview
Instance Attribute Summary collapse
-
#assert ⇒ Object
Returns the value of attribute assert.
-
#expr ⇒ Object
Returns the value of attribute expr.
-
#points ⇒ Object
Returns the value of attribute points.
Instance Method Summary collapse
-
#initialize(expr, assert = nil, points = nil) ⇒ Statement
constructor
A new instance of Statement.
Constructor Details
#initialize(expr, assert = nil, points = nil) ⇒ Statement
Returns a new instance of Statement.
309 310 311 312 313 |
# File 'lib/testml/runtime.rb', line 309 def initialize(expr, assert=nil, points=nil) @expr = expr @assert = assert if assert @points = points if points end |
Instance Attribute Details
#assert ⇒ Object
Returns the value of attribute assert.
306 307 308 |
# File 'lib/testml/runtime.rb', line 306 def assert @assert end |
#expr ⇒ Object
Returns the value of attribute expr.
305 306 307 |
# File 'lib/testml/runtime.rb', line 305 def expr @expr end |
#points ⇒ Object
Returns the value of attribute points.
307 308 309 |
# File 'lib/testml/runtime.rb', line 307 def points @points end |