Commit 3f04fb21 authored by KitaitiMakoto's avatar KitaitiMakoto

refine classes because modules cannot be refined in Ruby 2.3

parent 6d7f3cbf
Pipeline #34715585 failed with stages
in 45 seconds
......@@ -20,13 +20,15 @@ module EPUB
end
module Refinements
refine REXML::Node do
def element?
node_type == :element
end
[REXML::Element, REXML::Text].each do |klass|
refine klass do
def element?
node_type == :element
end
def text?
node_type == :text
def text?
node_type == :text
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