Module: Sequel::Metaprogramming
- Defined in:
- lib/sequel/lib/sequel/metaprogramming.rb
Overview
Contains methods that ease metaprogramming, used by some of Sequel's classes.
Instance Method Summary collapse
-
#meta_def(name, &block) ⇒ Object
Add methods to the object's metaclass.
Instance Method Details
#meta_def(name, &block) ⇒ Object
Add methods to the object's metaclass
5 6 7 |
# File 'lib/sequel/lib/sequel/metaprogramming.rb', line 5 def (name, &block) {define_method(name, &block)} end |