Class: CPEE::ProcessTransformation::Loop

Inherits:
Array
  • Object
show all
Includes:
Container
Defined in:
lib/cpee/processtransformation/structures.rb

Overview

}}}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Container

#container?

Constructor Details

#initialize(id) ⇒ Loop

Returns a new instance of Loop.



115
116
117
118
119
120
121
# File 'lib/cpee/processtransformation/structures.rb', line 115

def initialize(id)
  @container = true
  @id = id
  @type = :loop
  @condition = []
  @condition_type = nil
end

Instance Attribute Details

#conditionObject

Returns the value of attribute condition.



113
114
115
# File 'lib/cpee/processtransformation/structures.rb', line 113

def condition
  @condition
end

#condition_typeObject

Returns the value of attribute condition_type.



113
114
115
# File 'lib/cpee/processtransformation/structures.rb', line 113

def condition_type
  @condition_type
end

#idObject

Returns the value of attribute id.



113
114
115
# File 'lib/cpee/processtransformation/structures.rb', line 113

def id
  @id
end

#typeObject

Returns the value of attribute type.



113
114
115
# File 'lib/cpee/processtransformation/structures.rb', line 113

def type
  @type
end

Instance Method Details

#condition?Boolean

Returns:

  • (Boolean)


114
# File 'lib/cpee/processtransformation/structures.rb', line 114

def condition?; true; end