Sha256: 24d522eb8ed639c9e2b2b8761289334c6b28519e2e9dd47e0d654441fc1149d7

Contents?: true

Size: 811 Bytes

Versions: 25

Compression:

Stored size: 811 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

25 entries across 25 versions & 1 rubygems

Version Path
expressir-0.2.9 lib/expressir/model/statements/repeat.rb
expressir-0.2.9-x86_64-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.9-x86_64-darwin lib/expressir/model/statements/repeat.rb
expressir-0.2.9-x86-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.9-x86-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.9-x64-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.9-arm64-darwin lib/expressir/model/statements/repeat.rb
expressir-0.2.8 lib/expressir/model/statements/repeat.rb
expressir-0.2.8-x86_64-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.8-x86_64-darwin lib/expressir/model/statements/repeat.rb
expressir-0.2.8-x86-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.8-x86-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.8-x64-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.8-arm64-darwin lib/expressir/model/statements/repeat.rb
expressir-0.2.7 lib/expressir/model/statements/repeat.rb
expressir-0.2.7-x86-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.7-x64-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.7-x86_64-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.7-x86-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.7-x86_64-darwin lib/expressir/model/statements/repeat.rb