module CalendariumRomanum::ValueObjectInterface

Methods shared by most value objects defined by the gem

Attributes

symbol[R]

Machine-readable internal representation of the value

@return [Symbol]

to_sym[R]

Machine-readable internal representation of the value

@return [Symbol]

Public Instance Methods

name() click to toggle source

Internationalized, human-readable name

@return [String]

# File lib/calendarium-romanum/enums.rb, line 13
def name
  I18n.t @i18n_key
end
to_s() click to toggle source

String representation of the contents for debugging purposes

@return [String]

# File lib/calendarium-romanum/enums.rb, line 20
def to_s
  "#<#{self.class.name} #{symbol}>"
end