Sha256: c56586ee2b0dcd54089b567597a09d40b84b1c13e7f2e2616a74302ff7beca4a

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 Bytes

Contents

Object.class_eval do
  def self; self end
  
  def metaclass &block
    (class << self; self; end)
  end
  def metaclass_eval &block
    metaclass.class_eval(&block)
    self
  end
  
  def respond_to method, *args
    respond_to?(method) ? send(method, *args) : nil
  end

  public :extend
#  def copy
#    Marshal.load(Marshal.dump self) # Stub
#  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_ext-0.5.1 lib/ruby_ext/core/object.rb