Commit c0f90096 authored by KitaitiMakoto's avatar KitaitiMakoto

Add require method for ContentDocument#nokogiri

parent a63975f7
...@@ -34,6 +34,7 @@ module EPUB ...@@ -34,6 +34,7 @@ module EPUB
# @return [Nokogiri::XML::Document] content as Nokogiri::XML::Document object # @return [Nokogiri::XML::Document] content as Nokogiri::XML::Document object
def nokogiri def nokogiri
require 'nokogiri'
@nokogiri ||= Nokogiri.XML(raw_document) @nokogiri ||= Nokogiri.XML(raw_document)
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment