module RDF::Raptor::Format
RDF::Raptor::Format
mixin.
Public Instance Methods
detect(sample)
click to toggle source
# File lib/rdf/raptor/format.rb, line 21 def detect(sample) parser_name = RDF::Raptor::FFI::V2.raptor_world_guess_parser_name(RDF::Raptor::FFI::V2.world, nil, nil, sample, sample.length, nil) parser_name == rapper_format.to_s end
rapper_format(format = nil)
click to toggle source
@overload rapper_format
@overload rapper_format
(format)
@param [Symbol] format
@return [void]
# File lib/rdf/raptor/format.rb, line 13 def rapper_format(format = nil) unless format @rapper_format else @rapper_format = format end end