class Kanrisuru::Remote::Env
Public Class Methods
new()
click to toggle source
# File lib/kanrisuru/remote/env.rb, line 6 def initialize @env = {} end
Public Instance Methods
[](key)
click to toggle source
# File lib/kanrisuru/remote/env.rb, line 28 def [](key) @env[key.to_s.upcase] end
[]=(key, value)
click to toggle source
# File lib/kanrisuru/remote/env.rb, line 32 def []=(key, value) @env[key.to_s.upcase] = value end
clear()
click to toggle source
# File lib/kanrisuru/remote/env.rb, line 14 def clear @env = {} end
to_h()
click to toggle source
# File lib/kanrisuru/remote/env.rb, line 10 def to_h @env end
to_s()
click to toggle source
# File lib/kanrisuru/remote/env.rb, line 18 def to_s string = '' @env.each.with_index do |(key, value), index| string += "export #{key}=#{value};" string += ' ' if index < @env.length - 1 end string end