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.



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

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

Instance Method Details

#get_bindingObject



16
17
18
# File 'lib/dataduck/commands.rb', line 16

def get_binding
  binding
end