class REXML::HashableElementDelegator

Public Class Methods

new(sub) click to toggle source
Calls superclass method
# File lib/xhtmldiff.rb, line 20
def initialize(sub)
        super sub
end

Public Instance Methods

==(other) click to toggle source
# File lib/xhtmldiff.rb, line 23
def == other
        res = other.to_s.strip == self.to_s.strip
        res
end
[](k) click to toggle source
Calls superclass method
# File lib/xhtmldiff.rb, line 32
def[](k)
        r = super
        if r.kind_of? __getobj__.class
                self.class.new(r)
        else
                r
        end
end
eql?(other) click to toggle source
# File lib/xhtmldiff.rb, line 28
def eql? other
        self == other
end
hash() click to toggle source
# File lib/xhtmldiff.rb, line 41
def hash
        r = __getobj__.to_s.hash
        r
end