Sha256: 79371dbfcbb4a9d83d31e134ffc92b4d22ec82455ff6dbbd4f1e1bd1610a9968

Contents?: true

Size: 265 Bytes

Versions: 9

Compression:

Stored size: 265 Bytes

Contents

# Alternate Forgery api, see spec/forgery_spec.rb for examples.
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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
forgery-0.8.1 lib/forgery/forgery_api.rb
forgery-0.7.0 lib/forgery/forgery_api.rb
forgery-0.6.0 lib/forgery/forgery_api.rb
forgery-0.5.0 lib/forgery/forgery_api.rb
forgery-0.4.4 lib/forgery/forgery_api.rb
forgery-0.4.3 lib/forgery/forgery_api.rb
forgery-0.4.2 lib/forgery/forgery_api.rb
forgery-0.4.1 lib/forgery/forgery_api.rb
forgery-0.4.0 lib/forgery/forgery_api.rb