Module: CalendariumRomanum::ValueObjectInterface
Overview
Methods shared by most value objects defined by the gem
Instance Attribute Summary collapse
-
#symbol ⇒ Symbol
(also: #to_sym)
readonly
Machine-readable internal representation of the value.
Instance Method Summary collapse
-
#name ⇒ String
Internationalized, human-readable name.
-
#to_s ⇒ String
String representation of the contents for debugging purposes.
Instance Attribute Details
#symbol ⇒ Symbol (readonly) Also known as: to_sym
Machine-readable internal representation of the value
7 8 9 |
# File 'lib/calendarium-romanum/enums.rb', line 7 def symbol @symbol end |
Instance Method Details
#name ⇒ String
Internationalized, human-readable name
13 14 15 |
# File 'lib/calendarium-romanum/enums.rb', line 13 def name I18n.t @i18n_key end |
#to_s ⇒ String
String representation of the contents for debugging purposes
20 21 22 |
# File 'lib/calendarium-romanum/enums.rb', line 20 def to_s "#<#{self.class.name} #{symbol}>" end |