Class: Skeem::SkmDoExprBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/skeem/s_expr_nodes.rb

Overview

class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(iterSpecs, aTest, doResult, theCommands) ⇒ SkmDoExprBuilder

3 => iteration_spec_star, 6 => test, 7 => do_result, 9 => command_star



349
350
351
352
353
354
# File 'lib/skeem/s_expr_nodes.rb', line 349

def initialize(iterSpecs, aTest, doResult, theCommands)
  iteration_specs_set(iterSpecs)
  @test = aTest
  @do_result = doResult
  commands_set(theCommands)
end

Instance Attribute Details

#bindingsObject (readonly)

Returns the value of attribute bindings.



341
342
343
# File 'lib/skeem/s_expr_nodes.rb', line 341

def bindings
  @bindings
end

#commandsObject (readonly)

Returns the value of attribute commands.



345
346
347
# File 'lib/skeem/s_expr_nodes.rb', line 345

def commands
  @commands
end

#do_resultObject (readonly)

Returns the value of attribute do_result.



344
345
346
# File 'lib/skeem/s_expr_nodes.rb', line 344

def do_result
  @do_result
end

#testObject (readonly)

Returns the value of attribute test.



343
344
345
# File 'lib/skeem/s_expr_nodes.rb', line 343

def test
  @test
end

#update_stepsObject (readonly)

Returns the value of attribute update_steps.



342
343
344
# File 'lib/skeem/s_expr_nodes.rb', line 342

def update_steps
  @update_steps
end

Instance Method Details

#do_expressionObject



356
357
358
# File 'lib/skeem/s_expr_nodes.rb', line 356

def do_expression
  DoExpression.new(test, do_result, commands, update_steps)
end