Class: Expressir::Model::Statements::Return

Inherits:
Expressir::Model::Statement show all
Defined in:
lib/expressir/model/statements/return.rb

Overview

Specified in ISO 10303-11:2004

  • section 13.10 Return statement

Instance Attribute Summary collapse

Attributes inherited from ModelElement

#parent

Instance Method Summary collapse

Methods inherited from ModelElement

#children, #children_by_id, #find, from_hash, model_attr_accessor, model_attrs, #path, #reset_children_by_id, #to_hash, #to_liquid, #to_s

Constructor Details

#initialize(options = {}) ⇒ Return

Returns a new instance of Return.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):



11
12
13
14
15
# File 'lib/expressir/model/statements/return.rb', line 11

def initialize(options = {})
  @expression = options[:expression]

  super
end

Instance Attribute Details

#expressionExpression

Returns:



7
# File 'lib/expressir/model/statements/return.rb', line 7

model_attr_accessor :expression, 'Expression'