Sha256: 4e42ff5a125d8a7b03fa7294a1c7874c676bfce72db4d27c0bb500bab0a13c77

Contents?: true

Size: 917 Bytes

Versions: 35

Compression:

Stored size: 917 Bytes

Contents

module Expressir
  module Model
    module Statements
      class Repeat < ModelElement
        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]
          @remarks = options.fetch(:remarks, [])
          @source = options[:source]

          @bound1 = options[:bound1]
          @bound2 = options[:bound2]
          @increment = options[:increment]
          @while_expression = options[:while_expression]
          @until_expression = options[:until_expression]
          @statements = options.fetch(:statements, [])

          super
        end

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

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
expressir-0.2.16 lib/expressir/model/statements/repeat.rb
expressir-0.2.16-x86_64-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.16-x86_64-darwin lib/expressir/model/statements/repeat.rb
expressir-0.2.16-x86-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.16-x86-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.16-x64-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.16-arm64-darwin lib/expressir/model/statements/repeat.rb
expressir-0.2.15 lib/expressir/model/statements/repeat.rb
expressir-0.2.15-x86_64-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.15-x86_64-darwin lib/expressir/model/statements/repeat.rb
expressir-0.2.15-x86-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.15-x86-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.15-x64-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.15-arm64-darwin lib/expressir/model/statements/repeat.rb
expressir-0.2.14 lib/expressir/model/statements/repeat.rb
expressir-0.2.14-x86_64-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.14-x86_64-darwin lib/expressir/model/statements/repeat.rb
expressir-0.2.14-x86-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.14-x86-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.14-x64-mingw32 lib/expressir/model/statements/repeat.rb