class Arbre::Element::Proxy
Public Class Methods
new(element)
click to toggle source
# File lib/arbre/element/proxy.rb, line 7 def initialize(element) @element = element end
Public Instance Methods
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/arbre/element/proxy.rb, line 19 def method_missing(method, *args, &block) if method.to_s == 'to_ary' super else @element.__send__ method, *args, &block end end
respond_to?(method, include_all = false)
click to toggle source
Calls superclass method
# File lib/arbre/element/proxy.rb, line 11 def respond_to?(method, include_all = false) if method.to_s == 'to_ary' false else super || @element.respond_to?(method, include_all) end end