Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/atom/element.rb
Overview
cribbed from metaid.rb
Instance Method Summary collapse
-
#meta_def(name, &blk) ⇒ Object
Adds methods to a metaclass.
- #meta_eval(&blk) ⇒ Object
-
#metaclass ⇒ Object
The hidden singleton lurks behind everyone.
Instance Method Details
#meta_def(name, &blk) ⇒ Object
Adds methods to a metaclass
21 22 23 |
# File 'lib/atom/element.rb', line 21 def name, &blk { define_method name, &blk } end |
#meta_eval(&blk) ⇒ Object
18 |
# File 'lib/atom/element.rb', line 18 def &blk; .instance_eval &blk; end |
#metaclass ⇒ Object
The hidden singleton lurks behind everyone
17 |
# File 'lib/atom/element.rb', line 17 def ; class << self; self; end; end |