Class: HTMLCalendar::DatePresenter
- Inherits:
-
Object
- Object
- HTMLCalendar::DatePresenter
- Defined in:
- lib/html_calendar/date_presenter.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
- #html_classes ⇒ Object
-
#initialize(template, date) ⇒ DatePresenter
constructor
A new instance of DatePresenter.
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
#date ⇒ Object (readonly)
Returns the value of attribute date.
3 4 5 |
# File 'lib/html_calendar/date_presenter.rb', line 3 def date @date end |
#template ⇒ Object (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_classes ⇒ Object
8 9 10 |
# File 'lib/html_calendar/date_presenter.rb', line 8 def html_classes [] end |