Sha256: 7edf14631cc6b5d43c8f8c5ead624bf74cdce13f4516cc86ed95ab7efa140934

Contents?: true

Size: 530 Bytes

Versions: 9

Compression:

Stored size: 530 Bytes

Contents

module Ulla
  class EnvironmentFeature

    attr_accessor :name, :symbols, :labels, :constrained, :silent

    def initialize(name, symbols, labels, constrained, silent)
      @name         = name
      @symbols      = symbols
      @labels       = labels
      @constrained  = constrained
      @silent       = silent
    end

    def to_s
      [name, symbols.join, labels.join, constrained, silent].join(";")
    end

    def constrained?
      constrained == "T"
    end

    def silent?
      silent == "T"
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
ulla-0.9.9.2 lib/ulla/environment_feature.rb
semin-ulla-0.9.7 lib/ulla/environment_feature.rb
semin-ulla-0.9.8 lib/ulla/environment_feature.rb
semin-ulla-0.9.9.1 lib/ulla/environment_feature.rb
semin-ulla-0.9.9 lib/ulla/environment_feature.rb
ulla-0.9.9.1 lib/ulla/environment_feature.rb
ulla-0.9.9 lib/ulla/environment_feature.rb
ulla-0.9.8 lib/ulla/environment_feature.rb
ulla-0.9.7 lib/ulla/environment_feature.rb