Class: Object

Inherits:
BasicObject
Defined in:
lib/mario/util/object.rb

Overview

Instance Method Summary collapse

Instance Method Details

#define_class_method(name, &blk) ⇒ Object

:nodoc



4
5
6
# File 'lib/mario/util/object.rb', line 4

def define_class_method(name, &blk)
  (class << self; self; end).instance_eval { define_method name, &blk }
end