Module: Kernel

Defined in:
lib/kaui.rb

Overview

ruby-1.8 compatibility

Instance Method Summary collapse

Instance Method Details

#define_singleton_method(*args, &block) ⇒ Object


155
156
157
158
159
# File 'lib/kaui.rb', line 155

def define_singleton_method(*args, &block)
  class << self
    self
  end.send(:define_method, *args, &block)
end