Class: DataDuck::Commands::Namespace

Inherits:
Object
  • Object
show all
Defined in:
lib/dataduck/commands.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}) ⇒ Namespace

Returns a new instance of Namespace.



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

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

Instance Method Details

#get_bindingObject



14
15
16
# File 'lib/dataduck/commands.rb', line 14

def get_binding
  binding
end