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
-
#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.
86 87 88 89 90 91 |
# File 'lib/cpee/processtransformation/structures.rb', line 86 def initialize(id) @container = true @id = id @condition = [] @condition_type = nil end |
Instance Attribute Details
#condition ⇒ Object
Returns the value of attribute condition.
83 84 85 |
# File 'lib/cpee/processtransformation/structures.rb', line 83 def condition @condition end |
#condition_type ⇒ Object
Returns the value of attribute condition_type.
83 84 85 |
# File 'lib/cpee/processtransformation/structures.rb', line 83 def condition_type @condition_type end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
84 85 86 |
# File 'lib/cpee/processtransformation/structures.rb', line 84 def id @id end |
Instance Method Details
#condition? ⇒ Boolean
85 |
# File 'lib/cpee/processtransformation/structures.rb', line 85 def condition?; true; end |