lib/expressir/model/statements/repeat.rb in expressir-0.2.2 vs lib/expressir/model/statements/repeat.rb in expressir-0.2.3
- old
+ new
@@ -7,23 +7,24 @@
attr_accessor :bound2
attr_accessor :increment
attr_accessor :while_expression
attr_accessor :until_expression
attr_accessor :statements
+
+ attr_accessor :parent
attr_accessor :remarks
def initialize(options = {})
@id = options[:id]
@bound1 = options[:bound1]
@bound2 = options[:bound2]
@increment = options[:increment]
@while_expression = options[:while_expression]
@until_expression = options[:until_expression]
@statements = options[:statements]
- @remarks = options[:remarks]
end
- def scope_items
+ def children
items = []
items.push(self)
items
end
end
\ No newline at end of file