Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/distribution.rb
Instance Method Summary collapse
Instance Method Details
#define_singleton_method(name, &block) ⇒ Object
35 36 37 38 |
# File 'lib/distribution.rb', line 35 def define_singleton_method(name,&block) sc=class <<self;self;end sc.define_method(name,&block) end |