Class: Calrom::Config
- Inherits:
-
Object
- Object
- Calrom::Config
- Defined in:
- lib/calrom/config.rb
Instance Attribute Summary collapse
-
#colours ⇒ Object
Returns the value of attribute colours.
-
#date_range ⇒ Object
Returns the value of attribute date_range.
-
#formatter ⇒ Object
Returns the value of attribute formatter.
-
#today ⇒ Object
Returns the value of attribute today.
Instance Method Summary collapse
- #calendar ⇒ Object
- #highlighter(colourful) ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
Instance Attribute Details
#colours ⇒ Object
Returns the value of attribute colours.
8 9 10 |
# File 'lib/calrom/config.rb', line 8 def colours @colours end |
#date_range ⇒ Object
Returns the value of attribute date_range.
8 9 10 |
# File 'lib/calrom/config.rb', line 8 def date_range @date_range end |
#formatter ⇒ Object
Returns the value of attribute formatter.
8 9 10 |
# File 'lib/calrom/config.rb', line 8 def formatter @formatter end |
#today ⇒ Object
Returns the value of attribute today.
8 9 10 |
# File 'lib/calrom/config.rb', line 8 def today @today end |
Instance Method Details
#calendar ⇒ Object
10 11 12 |
# File 'lib/calrom/config.rb', line 10 def calendar CR::PerpetualCalendar.new(sanctorale: CR::Data::GENERAL_ROMAN_ENGLISH.load) end |
#highlighter(colourful) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/calrom/config.rb', line 24 def highlighter(colourful) if self.colours == false return Highlighter::No.new end colourful.new end |