Class: CalendariumRomanum::Celebration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#colourObject (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

#rankObject (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

#titleObject



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