Class: Expressir::Model::Statements::CaseAction
- Inherits:
-
ModelElement
- Object
- ModelElement
- Expressir::Model::Statements::CaseAction
- Defined in:
- lib/expressir/model/statements/case_action.rb
Overview
Specified in ISO 10303-11:2004
-
section 13.4 Case statement
Instance Attribute Summary collapse
Attributes inherited from ModelElement
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CaseAction
constructor
A new instance of CaseAction.
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 = {}) ⇒ CaseAction
Returns a new instance of CaseAction.
13 14 15 16 17 18 |
# File 'lib/expressir/model/statements/case_action.rb', line 13 def initialize( = {}) @labels = [:labels] || [] @statement = [:statement] super end |
Instance Attribute Details
#labels ⇒ Array<Expression>
7 |
# File 'lib/expressir/model/statements/case_action.rb', line 7 model_attr_accessor :labels, "Array<Expression>" |
#statement ⇒ Statement
8 |
# File 'lib/expressir/model/statements/case_action.rb', line 8 model_attr_accessor :statement, "Statement" |