Sha256: 18fbb43e16a5f56945eea5ca93dec2108cac7cb13bc53a283e4bcb2ca6782016

Contents?: true

Size: 781 Bytes

Versions: 171

Compression:

Stored size: 781 Bytes

Contents

module Expressir
  module Model
    module Statements
      # Specified in ISO 10303-11:2004
      # - section 13.4 Case statement
      class Case < Statement
        model_attr_accessor :expression, 'Expression'
        model_attr_accessor :actions, 'Array<CaseAction>'
        model_attr_accessor :otherwise_statement, 'Statement'

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

          super
        end
      end
    end
  end
end

Version data entries

171 entries across 171 versions & 1 rubygems

Version Path
expressir-1.2.0-x86-mingw32 lib/expressir/model/statements/case.rb
expressir-1.2.0-x86-linux lib/expressir/model/statements/case.rb
expressir-1.2.0-x64-mingw32 lib/expressir/model/statements/case.rb
expressir-1.2.0-arm64-darwin lib/expressir/model/statements/case.rb
expressir-1.1.0 lib/expressir/model/statements/case.rb
expressir-1.1.0-x86_64-linux lib/expressir/model/statements/case.rb
expressir-1.1.0-x86_64-darwin lib/expressir/model/statements/case.rb
expressir-1.1.0-x86-mingw32 lib/expressir/model/statements/case.rb
expressir-1.1.0-x86-linux lib/expressir/model/statements/case.rb
expressir-1.1.0-x64-mingw32 lib/expressir/model/statements/case.rb
expressir-1.1.0-arm64-darwin lib/expressir/model/statements/case.rb