Class: RFacebook::FacepricotChain

Inherits:
String
  • Object
show all
Includes:
FacepricotChaining
Defined in:
lib/facepricot.rb

Instance Method Summary collapse

Methods included from FacepricotChaining

#make_facepricot_chain

Constructor Details

#initialize(hpricotDoc) ⇒ FacepricotChain

Returns a new instance of FacepricotChain.



117
118
119
120
# File 'lib/facepricot.rb', line 117

def initialize(hpricotDoc)
  super(hpricotDoc.inner_html.gsub("&", "&"))
  @doc = hpricotDoc
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(methodSymbol, *params) ⇒ Object



122
123
124
# File 'lib/facepricot.rb', line 122

def method_missing(methodSymbol, *params)
  return make_facepricot_chain(methodSymbol.to_s, @doc)
end