Sha256: 3faf915fcc32fbe4b03ed806174afb66d8f50e3eca275d584653a6f7413901a3
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
require 'duck_puncher/version' module DuckPuncher autoload :Array, 'duck_puncher/array' autoload :Numeric, 'duck_puncher/numeric' autoload :Hash, 'duck_puncher/hash' autoload :String, 'duck_puncher/string' autoload :Object, 'duck_puncher/object' if defined? ActiveRecord autoload :ActiveRecordExtensions, 'duck_puncher/active_record_extensions' end def self.punch!(*names) names.each &method(:const_get) end def self.punch_all! constants.each &method(:const_get) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
duck_puncher-2.1.0 | lib/duck_puncher.rb |
duck_puncher-2.0.0 | lib/duck_puncher.rb |