class Array
Public Instance Methods
to_env(hash = ENV)
click to toggle source
# File lib/argv_to_env.rb, line 8 def to_env(hash = ENV) self.each{|arg| hash[$1] = $2 if arg =~ /^(\w+)=(.*)$/m } end
# File lib/argv_to_env.rb, line 8 def to_env(hash = ENV) self.each{|arg| hash[$1] = $2 if arg =~ /^(\w+)=(.*)$/m } end