Module: Kernel

Defined in:
lib/flux.rb

Instance Method Summary collapse

Instance Method Details

#use(mod, options = {}) ⇒ Object



54
55
56
57
58
59
# File 'lib/flux.rb', line 54

def use(mod, options = {})
  (Flux.environment[mod.to_s] ||= {}).
    merge! Hash[*options.map { |k, v| [k.to_s, v] }.flatten]


end