Sha256: 1368fc6492ecd77cab1e04b44a29b1a6ddd906d0a63cec4e621d87eba4fbe654

Contents?: true

Size: 922 Bytes

Versions: 14

Compression:

Stored size: 922 Bytes

Contents

module Expressir
  module Model
    module Statements
      class Repeat < ModelElement
        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]
          @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, [])
        end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
expressir-0.2.11 lib/expressir/model/statements/repeat.rb
expressir-0.2.11-x86_64-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.11-x86_64-darwin lib/expressir/model/statements/repeat.rb
expressir-0.2.11-x86-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.11-x86-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.11-x64-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.11-arm64-darwin lib/expressir/model/statements/repeat.rb
expressir-0.2.10 lib/expressir/model/statements/repeat.rb
expressir-0.2.10-x86_64-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.10-x86_64-darwin lib/expressir/model/statements/repeat.rb
expressir-0.2.10-x86-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.10-x86-linux lib/expressir/model/statements/repeat.rb
expressir-0.2.10-x64-mingw32 lib/expressir/model/statements/repeat.rb
expressir-0.2.10-arm64-darwin lib/expressir/model/statements/repeat.rb