Class: Expressir::Model::Statements::Repeat
Overview
Specified in ISO 10303-11:2004
Instance Attribute Summary collapse
Attributes included from Identifier
#id, #remark_items, #remarks, #source
Attributes inherited from ModelElement
#parent
Instance Method Summary
collapse
#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 = {}) ⇒ Repeat
Returns a new instance of Repeat.
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/expressir/model/statements/repeat.rb', line 24
def initialize(options = {})
initialize_identifier(options)
@bound1 = options[:bound1]
@bound2 = options[:bound2]
@increment = options[:increment]
@while_expression = options[:while_expression]
@until_expression = options[:until_expression]
@statements = options[:statements] || []
super
end
|
Instance Attribute Details
9
|
# File 'lib/expressir/model/statements/repeat.rb', line 9
model_attr_accessor :bound1, "Expression"
|
10
|
# File 'lib/expressir/model/statements/repeat.rb', line 10
model_attr_accessor :bound2, "Expression"
|
11
|
# File 'lib/expressir/model/statements/repeat.rb', line 11
model_attr_accessor :increment, "Expression"
|
#statements ⇒ Array<Statement>
14
|
# File 'lib/expressir/model/statements/repeat.rb', line 14
model_attr_accessor :statements, "Array<Statement>"
|
13
|
# File 'lib/expressir/model/statements/repeat.rb', line 13
model_attr_accessor :until_expression, "Expression"
|
12
|
# File 'lib/expressir/model/statements/repeat.rb', line 12
model_attr_accessor :while_expression, "Expression"
|
Instance Method Details
38
39
40
41
42
43
|
# File 'lib/expressir/model/statements/repeat.rb', line 38
def children
[
self,
*,
]
end
|