Sha256: e19f6572c54802d1c4bf2841fbd12283fd463bb3ed914574e8eaf14e40351e27

Contents?: true

Size: 433 Bytes

Versions: 14

Compression:

Stored size: 433 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, [])
        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/if.rb
expressir-0.2.11-x86_64-linux lib/expressir/model/statements/if.rb
expressir-0.2.11-x86_64-darwin lib/expressir/model/statements/if.rb
expressir-0.2.11-x86-mingw32 lib/expressir/model/statements/if.rb
expressir-0.2.11-x86-linux lib/expressir/model/statements/if.rb
expressir-0.2.11-x64-mingw32 lib/expressir/model/statements/if.rb
expressir-0.2.11-arm64-darwin lib/expressir/model/statements/if.rb
expressir-0.2.10 lib/expressir/model/statements/if.rb
expressir-0.2.10-x86_64-linux lib/expressir/model/statements/if.rb
expressir-0.2.10-x86_64-darwin lib/expressir/model/statements/if.rb
expressir-0.2.10-x86-mingw32 lib/expressir/model/statements/if.rb
expressir-0.2.10-x86-linux lib/expressir/model/statements/if.rb
expressir-0.2.10-x64-mingw32 lib/expressir/model/statements/if.rb
expressir-0.2.10-arm64-darwin lib/expressir/model/statements/if.rb