Class: Object

Inherits:
BasicObject
Defined in:
lib/noodall-core.rb

Overview

Ruby 1.8 Compatibilty

Instance Method Summary collapse

Instance Method Details

#define_singleton_method(sym, &block) ⇒ Object



18
19
20
21
22
# File 'lib/noodall-core.rb', line 18

def define_singleton_method(sym, &block)
  singleton_class.instance_eval do
    define_method sym, block
  end
end