Sha256: 39010f71ebc371614fd9969becb87f0a7779acbc7febda9d2982ebc593e898b1

Contents?: true

Size: 806 Bytes

Versions: 171

Compression:

Stored size: 806 Bytes

Contents

module Expressir
  module Model
    module Statements
      # Specified in ISO 10303-11:2004
      # - section 13.7 If ... Then ... Else statement
      class If < Statement
        model_attr_accessor :expression, 'Expression'
        model_attr_accessor :statements, 'Array<Statement>'
        model_attr_accessor :else_statements, 'Array<Statement>'

        # @param [Hash] options
        # @option options [Expression] :expression
        # @option options [Array<Statement>] :statements
        # @option options [Array<Statement>] :else_statements
        def initialize(options = {})
          @expression = options[:expression]
          @statements = options[:statements] || []
          @else_statements = options[:else_statements] || []

          super
        end
      end
    end
  end
end

Version data entries

171 entries across 171 versions & 1 rubygems

Version Path
expressir-2.1.0 lib/expressir/model/statements/if.rb
expressir-2.0.0 lib/expressir/model/statements/if.rb
expressir-1.4.2 lib/expressir/model/statements/if.rb
expressir-1.4.2-x86_64-linux-musl lib/expressir/model/statements/if.rb
expressir-1.4.2-x86_64-linux-gnu lib/expressir/model/statements/if.rb
expressir-1.4.2-x86_64-darwin lib/expressir/model/statements/if.rb
expressir-1.4.2-x64-mingw32 lib/expressir/model/statements/if.rb
expressir-1.4.2-x64-mingw-ucrt lib/expressir/model/statements/if.rb
expressir-1.4.2-arm64-darwin lib/expressir/model/statements/if.rb
expressir-1.4.2-aarch64-linux-musl lib/expressir/model/statements/if.rb
expressir-1.4.2-aarch64-linux-gnu lib/expressir/model/statements/if.rb
expressir-1.4.1 lib/expressir/model/statements/if.rb
expressir-1.4.1-x86_64-linux-musl lib/expressir/model/statements/if.rb
expressir-1.4.1-x86_64-linux-gnu lib/expressir/model/statements/if.rb
expressir-1.4.1-x86_64-darwin lib/expressir/model/statements/if.rb
expressir-1.4.1-x64-mingw32 lib/expressir/model/statements/if.rb
expressir-1.4.1-x64-mingw-ucrt lib/expressir/model/statements/if.rb
expressir-1.4.1-arm64-darwin lib/expressir/model/statements/if.rb
expressir-1.4.1-aarch64-linux-musl lib/expressir/model/statements/if.rb
expressir-1.4.1-aarch64-linux-gnu lib/expressir/model/statements/if.rb