Sha256: 331eb5c8eedc56c66fe98179920f253a9acd9a250cfb490d8f786af11e966e72
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
module DuckPuncher module Ducks module Object def clone! Marshal.load Marshal.dump self end unless defined? clone! def require!(file_or_gem, version = '') if DuckPuncher::GemInstaller.new.perform(file_or_gem, version) require file_or_gem.tr('-', '/') end end def punch DuckPuncher.delegate_class(self.class.name.to_sym).new(self) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
duck_puncher-2.7.0 | lib/duck_puncher/ducks/object.rb |