Sha256: 0afdacfaf0a8a43c4919b390e389d19072de01adfdfd611abe74143ddc5f8c05

Contents?: true

Size: 231 Bytes

Versions: 13

Compression:

Stored size: 231 Bytes

Contents

# Alternate Forgery api, see spec/forgery_spec.rb for examples.
def Forgery(forgery, method=nil, *args)
  klass = "Forgery::#{forgery.to_s.camelize}".constantize
  if method
    klass.send(method, *args)
  else
    klass
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
forgery-0.3.12 lib/forgery/forgery_api.rb
forgery-0.3.11 lib/forgery/forgery_api.rb
forgery-0.3.10 lib/forgery/forgery_api.rb
forgery-0.3.9 lib/forgery/forgery_api.rb
forgery-0.3.8 lib/forgery/forgery_api.rb
forgery-0.3.7 lib/forgery/forgery_api.rb
forgery-0.3.6 lib/forgery/forgery_api.rb
forgery-0.3.5 lib/forgery/forgery_api.rb
forgery-0.3.4 lib/forgery/forgery_api.rb
forgery-0.3.3 lib/forgery/forgery_api.rb
forgery-0.3.2 lib/forgery/forgery_api.rb
forgery-0.3.1 lib/forgery/forgery_api.rb
forgery-0.3.0 lib/forgery/forgery_api.rb