Top Level Namespace

Defined Under Namespace

Classes: Forgery, ForgeryGenerator, ForgeryRailtie

Instance Method Summary collapse

Instance Method Details

#Forgery(forgery, method = nil, *args) ⇒ Object

Alternate Forgery api, see spec/forgery_spec.rb for examples.


2
3
4
5
6
7
8
9
# File 'lib/forgery/forgery_api.rb', line 2

def Forgery(forgery, method=nil, *args)
  klass = Forgery::Extend("Forgery::#{Forgery::Extend(forgery.to_s).camelize}").constantize
  if method
    klass.send(method, *args)
  else
    klass
  end
end