Method: DataDuck::Commands::Namespace#initialize

Defined in:
lib/dataduck/commands.rb

#initialize(hash = {}) ⇒ Namespace

Returns a new instance of Namespace.



9
10
11
12
13
# File 'lib/dataduck/commands.rb', line 9

def initialize(hash = {})
  hash.each do |key, value|
    singleton_class.send(:define_method, key) { value }
  end
end