Sha256: e367b8feb73a0b1f50bffd74c01ff9b1a663fbc5e7dced1ada360f52171edf0b

Contents?: true

Size: 1004 Bytes

Versions: 14

Compression:

Stored size: 1004 Bytes

Contents

module Expressir
  module Model
    module Statements
      class Repeat < ModelElement
        include Identifier

        model_attr_accessor :bound1
        model_attr_accessor :bound2
        model_attr_accessor :increment
        model_attr_accessor :while_expression
        model_attr_accessor :until_expression
        model_attr_accessor :statements

        def initialize(options = {})
          @id = options[:id]
          @remarks = options[:remarks] || []
          @remark_items = options[:remark_items] || []
          @source = options[:source]

          @bound1 = options[:bound1]
          @bound2 = options[:bound2]
          @increment = options[:increment]
          @while_expression = options[:while_expression]
          @until_expression = options[:until_expression]
          @statements = options[:statements] || []

          super
        end

        def children
          [
            self,
            *remark_items
          ]
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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