Sha256: e61208e251f79e9bea59bf10d4b8cf38fe77877c3f1c59750ff64b141d21761a
Contents?: true
Size: 579 Bytes
Versions: 10
Compression:
Stored size: 579 Bytes
Contents
module Arbre class Element class Proxy < BasicObject undef_method :== undef_method :equal? def initialize(element) @element = element end def respond_to?(method, include_all = false) if method.to_s == 'to_ary' false else super || @element.respond_to?(method, include_all) end end def method_missing(method, *args, &block) if method.to_s == 'to_ary' super else @element.__send__ method, *args, &block end end end end end
Version data entries
10 entries across 10 versions & 2 rubygems