Sha256: f4e89e88b79a50b051e048760cd6ff981ce6d0b34da9f3442023d1dd6cc3b202

Contents?: true

Size: 230 Bytes

Versions: 5

Compression:

Stored size: 230 Bytes

Contents

unless respond_to?(:define_singleton_method)
  class Object
    def define_singleton_method(name, &block)
      singleton_class = class << self; self; end
      singleton_class.send(:define_method, name, &block)
    end
  end
end

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
wyngle-ripple-0.1.0 lib/ripple/core_ext/object.rb
better-ripple-1.0.0 lib/ripple/core_ext/object.rb
ripple-1.0.0.beta2 lib/ripple/core_ext/object.rb
seomoz-ripple-1.0.0.pre lib/ripple/core_ext/object.rb
ripple-1.0.0.beta lib/ripple/core_ext/object.rb