Module: CalendariumRomanum::ValueObjectInterface

Included in:
Colour, Season
Defined in:
lib/calendarium-romanum/enums.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

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

#nameObject



6
7
8
# File 'lib/calendarium-romanum/enums.rb', line 6

def name
  I18n.t @i18n_key
end

#to_sObject



10
11
12
# File 'lib/calendarium-romanum/enums.rb', line 10

def to_s
  "#<#{self.class.name} #{symbol}>"
end