Sha256: 9aa12df2f7031c148c866b53054c491004e003deaeafa0b089fc9495a8b0f3ad

Contents?: true

Size: 313 Bytes

Versions: 6

Compression:

Stored size: 313 Bytes

Contents

module Buildbox
  class Environment
    def initialize(environment)
      @environment = environment
    end

    def any?
      @environment && @environment.keys.length > 0
    end

    def to_s
      @environment.to_a.map do |key, value|
        %{#{key}=#{value.inspect}}
      end.join(" ")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
buildbox-0.2.2 lib/buildbox/environment.rb
buildbox-0.2.1 lib/buildbox/environment.rb
buildbox-0.2 lib/buildbox/environment.rb
buildbox-0.1.4 lib/buildbox/environment.rb
buildbox-0.1.1 lib/buildbox/environment.rb
buildbox-0.1 lib/buildbox/environment.rb