Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/net/daap/database.rb
Instance Method Summary collapse
Instance Method Details
#attr_blockreader(*syms) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/net/daap/database.rb', line 2 def attr_blockreader(*syms) syms.each do |sym| class_eval %{ def #{sym.to_s} if block_given? @#{sym.to_s}.each \{ |s| yield s \} end @#{sym.to_s} end } end end |