Class: Restfulie::Client::BasicInstantiator

Inherits:
Object
  • Object
show all
Defined in:
lib/restfulie/client/stack_navigator.rb

Instance Method Summary collapse

Instance Method Details

#new(type, args) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/restfulie/client/stack_navigator.rb', line 30

def new(type, args)
  if type.instance_method(:initialize).arity==1
    type.new(args)
  else
    type.new
  end
end