class Crabfarm::Adapters::Parser::Pincers
Public Class Methods
format()
click to toggle source
# File lib/crabfarm/adapters/parser/pincers.rb, line 5 def self.format 'html' end
parse(_raw)
click to toggle source
# File lib/crabfarm/adapters/parser/pincers.rb, line 9 def self.parse(_raw) ::Pincers.for_nokogiri ::Nokogiri::HTML _raw end
preprocess_parsing_target(_target)
click to toggle source
# File lib/crabfarm/adapters/parser/pincers.rb, line 13 def self.preprocess_parsing_target(_target) if _target.respond_to? :to_html _target.to_html else _target end end