Class: CalendariumRomanum::Celebration
- Inherits:
-
Object
- Object
- CalendariumRomanum::Celebration
- Extended by:
- Forwardable
- Defined in:
- lib/calendarium-romanum/day.rb
Overview
information on one particular celebration of the liturgical year (like a Sunday, feast or memorial); some days have no (ferial office is used), some have one, some have more among which one may and may not be chosen
Instance Attribute Summary collapse
-
#colour ⇒ Object
(also: #color)
readonly
Returns the value of attribute colour.
-
#rank ⇒ Object
readonly
Returns the value of attribute rank.
Instance Method Summary collapse
-
#initialize(title = '', rank = Ranks::FERIAL, colour = Colours::GREEN) ⇒ Celebration
constructor
A new instance of Celebration.
- #title ⇒ Object
Constructor Details
#initialize(title = '', rank = Ranks::FERIAL, colour = Colours::GREEN) ⇒ Celebration
Returns a new instance of Celebration.
45 46 47 48 49 |
# File 'lib/calendarium-romanum/day.rb', line 45 def initialize(title='', rank=Ranks::FERIAL, colour=Colours::GREEN) @title = title @rank = rank @colour = colour end |
Instance Attribute Details
#colour ⇒ Object (readonly) Also known as: color
Returns the value of attribute colour.
62 63 64 |
# File 'lib/calendarium-romanum/day.rb', line 62 def colour @colour end |
#rank ⇒ Object (readonly)
Returns the value of attribute rank.
51 52 53 |
# File 'lib/calendarium-romanum/day.rb', line 51 def rank @rank end |
Instance Method Details
#title ⇒ Object
54 55 56 57 58 59 60 |
# File 'lib/calendarium-romanum/day.rb', line 54 def title if @title.respond_to? :call @title.call else @title end end |