Sha256: aaeb68224c17ad3f479c8aebd74450c966981a044d6f557d085e76835237530b

Contents?: true

Size: 304 Bytes

Versions: 4

Compression:

Stored size: 304 Bytes

Contents

module Egor
  class EnvironmentFeature < Struct.new(:name, :symbols, :labels, :constrained, :silent)

    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

4 entries across 4 versions & 1 rubygems

Version Path
semin-egor-0.9.0 lib/egor/environment_feature.rb
semin-egor-0.9.1 lib/egor/environment_feature.rb
semin-egor-0.9.2 lib/egor/environment_feature.rb
semin-egor-0.9.3 lib/egor/environment_feature.rb