Class: Saxxy::Parsers::Nokogiri

Inherits:
Base
  • Object
show all
Defined in:
lib/saxxy/parsers/nokogiri.rb

Instance Attribute Summary

Attributes inherited from Base

#context_tree, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Saxxy::Parsers::Base

Instance Method Details

#parse_file(path_to_file, encoding = 'UTF-8', &block) ⇒ Object


13
14
15
# File 'lib/saxxy/parsers/nokogiri.rb', line 13

def parse_file(path_to_file, encoding = 'UTF-8', &block)
  new_parser.parse_file(path_to_file, encoding, &block)
end

#parse_io(io, encoding = 'UTF-8', &block) ⇒ Object


17
18
19
# File 'lib/saxxy/parsers/nokogiri.rb', line 17

def parse_io(io, encoding = 'UTF-8', &block)
  new_parser.parse_io(io, encoding, &block)
end

#parse_string(string, encoding = 'UTF-8', &block) ⇒ Object


9
10
11
# File 'lib/saxxy/parsers/nokogiri.rb', line 9

def parse_string(string, encoding = 'UTF-8', &block)
  new_parser.parse_memory(string, encoding, &block)
end