Module: Delegatable
- Defined in:
- lib/fsdb/delegatable.rb
Instance Method Summary collapse
Instance Method Details
#delegate(h) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/fsdb/delegatable.rb', line 2 def delegate h h.each do |meth, reader| module_eval %{ def #{meth}(*args, &block); #{reader}.#{meth}(*args, &block); end } end end |