Class: HTMLCalendar::DatePresenter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template, date) ⇒ DatePresenter

Returns a new instance of DatePresenter.



4
5
6
# File 'lib/html_calendar/date_presenter.rb', line 4

def initialize(template, date)
  @template, @date = template, date
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



3
4
5
# File 'lib/html_calendar/date_presenter.rb', line 3

def date
  @date
end

#templateObject (readonly)

Returns the value of attribute template.



3
4
5
# File 'lib/html_calendar/date_presenter.rb', line 3

def template
  @template
end

Instance Method Details

#html_classesObject



8
9
10
# File 'lib/html_calendar/date_presenter.rb', line 8

def html_classes
  []
end