Class: DataDuck::Commands::Namespace
- Inherits:
-
Object
- Object
- DataDuck::Commands::Namespace
- Defined in:
- lib/dataduck/commands.rb
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(hash = {}) ⇒ Namespace
constructor
A new instance of Namespace.
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_binding ⇒ Object
16 17 18 |
# File 'lib/dataduck/commands.rb', line 16 def get_binding binding end |