Class: CalendariumRomanum::Season
- Inherits:
-
Object
- Object
- CalendariumRomanum::Season
- Defined in:
- lib/calendarium-romanum/enums.rb
Instance Attribute Summary collapse
-
#colour ⇒ Object
readonly
Returns the value of attribute colour.
-
#symbol ⇒ Object
(also: #to_sym)
readonly
Returns the value of attribute symbol.
Instance Method Summary collapse
-
#initialize(symbol, colour) ⇒ Season
constructor
A new instance of Season.
Constructor Details
#initialize(symbol, colour) ⇒ Season
Returns a new instance of Season.
26 27 28 29 |
# File 'lib/calendarium-romanum/enums.rb', line 26 def initialize(symbol, colour) @symbol = symbol @colour = colour end |
Instance Attribute Details
#colour ⇒ Object (readonly)
Returns the value of attribute colour
31 32 33 |
# File 'lib/calendarium-romanum/enums.rb', line 31 def colour @colour end |
#symbol ⇒ Object (readonly) Also known as: to_sym
Returns the value of attribute symbol
31 32 33 |
# File 'lib/calendarium-romanum/enums.rb', line 31 def symbol @symbol end |