Sha256: d56c5ea4d395fae745aa9b922bc178a38f33bf0ca1ac2974980e339f3741212f
Contents?: true
Size: 386 Bytes
Versions: 22
Compression:
Stored size: 386 Bytes
Contents
module DataMapper module Is def is(plugin, *pars, &block) generator_method = "is_#{plugin}".to_sym if self.respond_to?(generator_method) self.send(generator_method, *pars, &block) else raise PluginNotFoundError, "could not find plugin named #{plugin}" end end Model.send(:include, self) end # module Is end # module DataMapper
Version data entries
22 entries across 22 versions & 6 rubygems