Sha256: 8606012938db2894707ff72d376d02c5fa546f80bc1adc86fe7e670bfce9c38e
Contents?: true
Size: 457 Bytes
Versions: 3
Compression:
Stored size: 457 Bytes
Contents
# encoding: UTF-8 module Watchmaker module Integrations extend ActiveSupport::Concern module ClassMethods # Construct from a factory. # def from_factory(factory, method = :create) Factory.send(method, factory.to_sym) end # Construct from another watchmaker. # def from_watchmaker(watchmaker, method = :construct) self.send(method, watchmaker.to_sym) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
watchmaker-0.2.2 | lib/watchmaker/integrations.rb |
watchmaker-0.2.1 | lib/watchmaker/integrations.rb |
watchmaker-0.2.0 | lib/watchmaker/integrations.rb |