Method: Wikiwhat::Page#initialize

Defined in:
lib/wikiwhat/page.rb

#initialize(title, options = {}) ⇒ Page

Set title of article and type of information requested.

title - the title of the requested article as a String img_list - True if desired output is a list of all images on the page. header - the desired section header as a String. refs - True if desired output is a list of all references on the

page.

sidebar_img - True if desired output is the image in the sidebar paragraphs - the number of paragraphs from the article as an Interger

TODO sidebar - True if desired output is the contents of the sidebar.

Takes options hash and sets instance variables, then calls appropriate method.



25
26
27
28
29
# File 'lib/wikiwhat/page.rb', line 25

def initialize(title, options={})
  @title = title
  run(options)

end