Class: TestML::Statement

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

Overview


Instance Attribute Summary collapse

Instance Method Summary collapse

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

#assertObject

Returns the value of attribute assert.



306
307
308
# File 'lib/testml/runtime.rb', line 306

def assert
  @assert
end

#exprObject

Returns the value of attribute expr.



305
306
307
# File 'lib/testml/runtime.rb', line 305

def expr
  @expr
end

#pointsObject

Returns the value of attribute points.



307
308
309
# File 'lib/testml/runtime.rb', line 307

def points
  @points
end