Sha256: 25b0438ce2eb8cd694be0435d91891148727a75dcc8d77921cd0e4095284fb0b

Contents?: true

Size: 844 Bytes

Versions: 3

Compression:

Stored size: 844 Bytes

Contents

module Expressir
  module Model
    module Statements
      class Repeat
        include Scope
        include Identifier

        attr_accessor :bound1
        attr_accessor :bound2
        attr_accessor :increment
        attr_accessor :while_expression
        attr_accessor :until_expression
        attr_accessor :statements

        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]
        end

        def children
          items = []
          items.push(self)
          items
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
expressir-0.2.6 lib/expressir/model/statements/repeat.rb
expressir-0.2.5-x64-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.4-x64-mingw32 lib/expressir/model/statements/repeat.rb