lib/expressir/model/statements/repeat.rb in expressir-0.2.0 vs lib/expressir/model/statements/repeat.rb in expressir-0.2.1

- old
+ new

@@ -1,24 +1,32 @@ module Expressir module Model module Statements class Repeat - attr_accessor :variable + attr_accessor :id attr_accessor :bound1 attr_accessor :bound2 attr_accessor :increment attr_accessor :while_expression attr_accessor :until_expression attr_accessor :statements + attr_accessor :remarks def initialize(options = {}) - @variable = options[:variable] + @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 + items = [] + items.push(self) + items end end end end end \ No newline at end of file