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.



117
118
119
120
121
122
123
124
# File 'lib/cpee/processtransformation/structures.rb', line 117

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

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



115
116
117
# File 'lib/cpee/processtransformation/structures.rb', line 115

def attributes
  @attributes
end

#conditionObject

Returns the value of attribute condition.



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

def condition
  @condition
end

#condition_typeObject

Returns the value of attribute condition_type.



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

def condition_type
  @condition_type
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Instance Method Details

#condition?Boolean

Returns:

  • (Boolean)


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

def condition?; true; end