class Ironment::Populator

Public Class Methods

new(options = {}) click to toggle source
# File lib/ironment/populator.rb, line 3
def initialize(options = {})
  @env = options[:env] || ENV
end

Public Instance Methods

populate_with(runcom) click to toggle source
# File lib/ironment/populator.rb, line 7
def populate_with(runcom)
  enum = runcom.each_pair

  loop do
    @env.[]= *enum.next
  end
end