Class: Calrom::Formatter::Formatter
- Inherits:
-
Object
- Object
- Calrom::Formatter::Formatter
- Defined in:
- lib/calrom/formatter/formatter.rb
Instance Attribute Summary collapse
-
#highlighter ⇒ Object
readonly
Returns the value of attribute highlighter.
-
#today ⇒ Object
readonly
Returns the value of attribute today.
Instance Method Summary collapse
- #call(calendar, date_range) ⇒ Object
-
#initialize(highlighter, today) ⇒ Formatter
constructor
A new instance of Formatter.
Constructor Details
#initialize(highlighter, today) ⇒ Formatter
Returns a new instance of Formatter.
4 5 6 7 |
# File 'lib/calrom/formatter/formatter.rb', line 4 def initialize(highlighter, today) @highlighter = highlighter @today = today end |
Instance Attribute Details
#highlighter ⇒ Object (readonly)
Returns the value of attribute highlighter.
9 10 11 |
# File 'lib/calrom/formatter/formatter.rb', line 9 def highlighter @highlighter end |
#today ⇒ Object (readonly)
Returns the value of attribute today.
9 10 11 |
# File 'lib/calrom/formatter/formatter.rb', line 9 def today @today end |
Instance Method Details
#call(calendar, date_range) ⇒ Object
11 12 |
# File 'lib/calrom/formatter/formatter.rb', line 11 def call(calendar, date_range) end |