Module: WebCrawler::View
- Extended by:
- View
- Included in:
- View
- Defined in:
- lib/web_crawler/view.rb,
lib/web_crawler/view/csv.rb,
lib/web_crawler/view/xml.rb,
lib/web_crawler/view/json.rb,
lib/web_crawler/view/yaml.rb,
lib/web_crawler/view/plain.rb,
lib/web_crawler/view/table.rb,
lib/web_crawler/view/runner.rb
Defined Under Namespace
Classes: Base, Csv, Json, Plain, Runner, Table, Xml, Yaml
Instance Method Summary collapse
Instance Method Details
#factory(type, *args, &block) ⇒ Object
13 14 15 |
# File 'lib/web_crawler/view.rb', line 13 def factory(type, *args, &block) (self.name + "::" + type.to_s.classify).constantize.new(*args, &block) end |