Method: RDF::Format.detect
- Defined in:
- lib/rdf/format.rb
.detect(sample) ⇒ Boolean
Use a text sample to detect the format of an input file. Sub-classes implement a matcher sufficient to detect probably format matches, including disambiguating between other similar formats.
Used to determine format class from loaded formats by for when a match cannot be unambigiously found otherwise.
455 456 457 |
# File 'lib/rdf/format.rb', line 455 def self.detect(sample) false end |