Method: WikiLib::PMWiki#get_edit_text

Defined in:
lib/wiki_lib/pm_wiki.rb

#get_edit_text(page) ⇒ String

Returns the edit text of a PMWiki page

Parameters:

  • page (String)

    The page to get the edit text for

Returns:

  • (String)

    The edit text



48
49
50
51
52
53
54
# File 'lib/wiki_lib/pm_wiki.rb', line 48

def get_edit_text(page)
  # get the form, logging in if nessessary
  form = (edit_url(page))

  # return the text
  form['text']
end