Class: Java::ComGargoylesoftwareHtmlunitJavascriptHostHtml::HTMLElement

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

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &blk) ⇒ Object



53
54
55
56
57
58
59
60
# File 'lib/celerity/htmlunit.rb', line 53

def method_missing(meth, *args, &blk)
  m = ["jsxGet_#{meth}", "jsx_get_#{meth}"].find { |m| respond_to?(m) }
  if m
    __send__ m
  else
    super
  end
end