| Class | Object |
| In: |
lib/sinatra/core_ext/metaid.rb
|
| Parent: | Object |
Compliments to why for this: whytheluckystiff.net/articles/seeingMetaclassesClearly.html
Defines an instance method within a class
# File lib/sinatra/core_ext/metaid.rb, line 15
15: def class_def name, &blk
16: class_eval { define_method name, &blk }
17: end
# File lib/sinatra/core_ext/metaid.rb, line 7 7: def meta_eval &blk; metaclass.instance_eval &blk; end