Module: CalendariumRomanum::ValueObjectInterface
Instance Attribute Summary collapse
-
#symbol ⇒ Object
(also: #to_sym)
readonly
Returns the value of attribute symbol.
Instance Method Summary collapse
Instance Attribute Details
#symbol ⇒ Object (readonly) Also known as: to_sym
Returns the value of attribute symbol.
3 4 5 |
# File 'lib/calendarium-romanum/enums.rb', line 3 def symbol @symbol end |
Instance Method Details
#name ⇒ Object
6 7 8 |
# File 'lib/calendarium-romanum/enums.rb', line 6 def name I18n.t @i18n_key end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/calendarium-romanum/enums.rb', line 10 def to_s "#<#{self.class.name} #{symbol}>" end |