Class: CPEE::ProcessTransformation::Alternative
- Inherits:
-
Array
- Object
- Array
- CPEE::ProcessTransformation::Alternative
- Includes:
- Container
- Defined in:
- lib/cpee/processtransformation/structures.rb
Overview
}}}
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#condition ⇒ Object
Returns the value of attribute condition.
-
#condition_type ⇒ Object
Returns the value of attribute condition_type.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #condition? ⇒ Boolean
-
#initialize(id) ⇒ Alternative
constructor
A new instance of Alternative.
Methods included from Container
Constructor Details
#initialize(id) ⇒ Alternative
Returns a new instance of Alternative.
84 85 86 87 88 89 90 |
# File 'lib/cpee/processtransformation/structures.rb', line 84 def initialize(id) @container = true @id = id @condition = [] @condition_type = nil @attributes = {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
82 83 84 |
# File 'lib/cpee/processtransformation/structures.rb', line 82 def attributes @attributes end |
#condition ⇒ Object
Returns the value of attribute condition.
81 82 83 |
# File 'lib/cpee/processtransformation/structures.rb', line 81 def condition @condition end |
#condition_type ⇒ Object
Returns the value of attribute condition_type.
81 82 83 |
# File 'lib/cpee/processtransformation/structures.rb', line 81 def condition_type @condition_type end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
82 83 84 |
# File 'lib/cpee/processtransformation/structures.rb', line 82 def id @id end |
Instance Method Details
#condition? ⇒ Boolean
83 |
# File 'lib/cpee/processtransformation/structures.rb', line 83 def condition?; true; end |