class InEnv

Public Class Methods

new(expr) click to toggle source
# File lib/ruby_make_script/utils.rb, line 121
def initialize(expr)
    @k, @v = expr.split('=')
end

Public Instance Methods

enter() click to toggle source
# File lib/ruby_make_script/utils.rb, line 125
def enter
    @v0 = ENV[@k]
    ENV[@k] = @v
end
exit() click to toggle source
# File lib/ruby_make_script/utils.rb, line 130
def exit
    ENV[@k] = @v0
end