Top Level Namespace

Defined Under Namespace

Modules: Daemoned, MessageQueue, SweatShop

Instance Method Summary collapse

Instance Method Details

#meta_def(name, &blk) ⇒ Object



3
4
5
# File 'lib/sweat_shop/metaid.rb', line 3

def meta_def(name, &blk)
  meta_eval { define_method name, &blk }
end

#meta_eval(&blk) ⇒ Object



2
# File 'lib/sweat_shop/metaid.rb', line 2

def meta_eval(&blk); metaclass.instance_eval(&blk); end

#metaclassObject



1
# File 'lib/sweat_shop/metaid.rb', line 1

def metaclass; class << self; self; end; end