Sha256: 34fac3bdb3d0d3bedbee8279830470f681f24965e6487c8c88d81d9681d1cd88
Contents?: true
Size: 383 Bytes
Versions: 12
Compression:
Stored size: 383 Bytes
Contents
Kernel.class_eval do def respond_to sym, *args return nil if not respond_to? sym send sym, *args end # def _ &b # raise "Block isn't provided!" unless b # return b # end def singleton_class(&block) if block_given? (class << self; self; end).class_eval(&block) self else (class << self; self; end) end end alias_method :metaclass, :singleton_class end
Version data entries
12 entries across 12 versions & 1 rubygems