Method: AutomaticCalendar#initialize

Defined in:
lib/helpers/default-helpers.rb

#initialize(wiki, month_pagename = '%Y %b', day_pagename = '%Y %b %d', author = "AutomaticCalendar") ⇒ AutomaticCalendar

Returns a new instance of AutomaticCalendar.



273
274
275
276
277
# File 'lib/helpers/default-helpers.rb', line 273

def initialize( wiki, month_pagename = '%Y %b', day_pagename = '%Y %b %d', author = "AutomaticCalendar" )
  @wiki, @month_pagename, @day_pagename, @author = wiki, month_pagename, day_pagename, author
  render_coming_year
  @wiki.watch_for(:month) { render_coming_year }
end