class Etcenv::DockerenvFile
Attributes
env[R]
Public Class Methods
new(env)
click to toggle source
# File lib/etcenv/dockerenv_file.rb, line 5 def initialize(env) @env = env end
Public Instance Methods
lines()
click to toggle source
# File lib/etcenv/dockerenv_file.rb, line 11 def lines env.map { |k,v| "#{k}=#{v}" } end
to_s()
click to toggle source
# File lib/etcenv/dockerenv_file.rb, line 15 def to_s lines.join(?\n) + ?\n end