Sha256: e86e70315488e7ef4a5914627ee1be791b5e320df60d0b05d3c0b14d291d25d3

Contents?: true

Size: 450 Bytes

Versions: 63

Compression:

Stored size: 450 Bytes

Contents

module Expressir
  module Model
    module Statements
      class If < ModelElement
        attr_accessor :expression
        attr_accessor :statements
        attr_accessor :else_statements

        def initialize(options = {})
          @expression = options[:expression]
          @statements = options.fetch(:statements, [])
          @else_statements = options.fetch(:else_statements, [])

          super
        end
      end
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
expressir-0.2.21 lib/expressir/model/statements/if.rb
expressir-0.2.21-x86_64-linux lib/expressir/model/statements/if.rb
expressir-0.2.21-x86_64-darwin lib/expressir/model/statements/if.rb
expressir-0.2.21-x86-mingw32 lib/expressir/model/statements/if.rb
expressir-0.2.21-x86-linux lib/expressir/model/statements/if.rb
expressir-0.2.21-x64-mingw32 lib/expressir/model/statements/if.rb
expressir-0.2.21-arm64-darwin lib/expressir/model/statements/if.rb
expressir-0.2.19 lib/expressir/model/statements/if.rb
expressir-0.2.19-x86_64-linux lib/expressir/model/statements/if.rb
expressir-0.2.19-x86_64-darwin lib/expressir/model/statements/if.rb
expressir-0.2.19-x86-mingw32 lib/expressir/model/statements/if.rb
expressir-0.2.19-x86-linux lib/expressir/model/statements/if.rb
expressir-0.2.19-x64-mingw32 lib/expressir/model/statements/if.rb
expressir-0.2.19-arm64-darwin lib/expressir/model/statements/if.rb
expressir-0.2.18 lib/expressir/model/statements/if.rb
expressir-0.2.18-x86_64-linux lib/expressir/model/statements/if.rb
expressir-0.2.18-x86_64-darwin lib/expressir/model/statements/if.rb
expressir-0.2.18-x86-mingw32 lib/expressir/model/statements/if.rb
expressir-0.2.18-x86-linux lib/expressir/model/statements/if.rb
expressir-0.2.18-x64-mingw32 lib/expressir/model/statements/if.rb