Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/core_ext/object.rb
Instance Method Summary collapse
Instance Method Details
#meta_def(sym, &block) ⇒ Object
10 11 12 13 14 |
# File 'lib/core_ext/object.rb', line 10 def (sym, &block) do define_method(sym, &block) end end |
#meta_eval(&block) ⇒ Object
6 7 8 |
# File 'lib/core_ext/object.rb', line 6 def (&block) .instance_eval(&block) end |
#metaclass ⇒ Object
2 3 4 |
# File 'lib/core_ext/object.rb', line 2 def class << self; self end end |