Class: Mechanize::Page

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

Instance Method Summary collapse

Instance Method Details

#form_id(formId) ⇒ Object



12
13
14
15
# File 'lib/facebook_bot.rb', line 12

def form_id(formId)
  formcontents = (self/:form).find { |elem| elem['id'] == formId }
  if formcontents then return Mechanize::Form.new(formcontents) end
end