Class: Pismo::Reader::Document
- Inherits:
-
Object
- Object
- Pismo::Reader::Document
- Defined in:
- lib/pismo/reader.rb
Class Method Summary collapse
Class Method Details
.create(raw_content, options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/pismo/reader.rb', line 5 def self.create(raw_content, = {}) type = .delete(:reader) case type when :score Pismo::Reader::Tree.new(raw_content, ) when :cluster Pismo::Reader::Cluster.new(raw_content, ) else Pismo::Reader::Tree.new(raw_content, ) end end |