Method: DataDuck::Commands::Namespace#initialize
- Defined in:
- lib/dataduck/commands.rb
#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 |