Commit 33cddb09 authored by KitaitiMakoto's avatar KitaitiMakoto

Define REXML::Element#document?

parent 8262793d
......@@ -22,6 +22,10 @@ module EPUB
module Refinements
[REXML::Element, REXML::Text].each do |klass|
refine klass do
def document?
node_type == :document
def element?
node_type == :element
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