Method: IoTools::Importer::ClassMethods#collect
- Defined in:
- lib/io_tools/importer.rb
#collect(*args, &block) ⇒ Object
15 16 17 18 19 |
# File 'lib/io_tools/importer.rb', line 15 def collect *args, &block define_method :collection do @collection ||= block_given? ? instance_eval(&block) : send(args.first) end end |