Class: Expressir::Model::Statements::Case
- Inherits:
-
Expressir::Model::Statement
- Object
- ModelElement
- Expressir::Model::Statement
- Expressir::Model::Statements::Case
- Defined in:
- lib/expressir/model/statements/case.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 = {}) ⇒ Case
constructor
A new instance of Case.
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 = {}) ⇒ Case
Returns a new instance of Case.
15 16 17 18 19 20 21 |
# File 'lib/expressir/model/statements/case.rb', line 15 def initialize( = {}) @expression = [:expression] @actions = [:actions] || [] @otherwise_statement = [:otherwise_statement] super end |
Instance Attribute Details
#actions ⇒ Array<CaseAction>
8 |
# File 'lib/expressir/model/statements/case.rb', line 8 model_attr_accessor :actions, "Array<CaseAction>" |
#expression ⇒ Expression
7 |
# File 'lib/expressir/model/statements/case.rb', line 7 model_attr_accessor :expression, "Expression" |
#otherwise_statement ⇒ Statement
9 |
# File 'lib/expressir/model/statements/case.rb', line 9 model_attr_accessor :otherwise_statement, "Statement" |