Sha256: 7ff3032acd3a07bc9c8bb3d5886edca95b57c163c22213b96ea650fa03d29103
Contents?: true
Size: 226 Bytes
Versions: 3
Compression:
Stored size: 226 Bytes
Contents
module Fabricators module Methods %w(build create attributes_for).each do |method| define_method method do |name, *args| Fabricators.definitions.find(name).send(method, *args) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fabricators-0.1.2 | lib/fabricators/methods.rb |
fabricators-0.1.1 | lib/fabricators/methods.rb |
fabricators-0.1.0 | lib/fabricators/methods.rb |