Method: EasyDom#method_missing
- Defined in:
- lib/easydom.rb
#method_missing(sym, *args, &block) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/easydom.rb', line 18 def method_missing(sym, *args, &block) puts "name: %s; args: %s" % [sym, args.inspect] if @debug if @e.respond_to? sym then puts 'attribute found' if @debug @e.method(sym).call(*args) else e = @e.element(sym.to_s) EasyDom.new(e, debug: @debug) if e end end |