Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/magic_xml.rb

Instance Method Summary collapse

Instance Method Details

#===(*args, &blk) ⇒ Object



52
53
54
55
56
57
58
# File 'lib/magic_xml.rb', line 52

def ===(*args, &blk)
    if args.size >= 1 and args[0].is_a? XML
        all?{|k,v| v === args[0][k]}
    else
        eqeqeq_before_magic_xml(*args, &blk)
    end
end

#eqeqeq_before_magic_xmlObject



51
# File 'lib/magic_xml.rb', line 51

alias_method :eqeqeq_before_magic_xml, :===