Class: Object

Inherits:
BasicObject
Defined in:
lib/prop.rb

Instance Method Summary collapse

Instance Method Details

#define_prop_class_method(name, &blk) ⇒ Object



4
5
6
# File 'lib/prop.rb', line 4

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