Class: HakumiComponents::Calendar::LocalePack
- Inherits:
-
Object
- Object
- HakumiComponents::Calendar::LocalePack
- Extended by:
- T::Sig
- Defined in:
- app/components/hakumi_components/calendar/locale_pack.rb
Instance Attribute Summary collapse
-
#days_full ⇒ Object
readonly
Returns the value of attribute days_full.
-
#days_short ⇒ Object
readonly
Returns the value of attribute days_short.
-
#months_full ⇒ Object
readonly
Returns the value of attribute months_full.
-
#months_short ⇒ Object
readonly
Returns the value of attribute months_short.
Instance Method Summary collapse
-
#initialize(days_short:, days_full:, months_short:, months_full:) ⇒ LocalePack
constructor
A new instance of LocalePack.
Constructor Details
#initialize(days_short:, days_full:, months_short:, months_full:) ⇒ LocalePack
Returns a new instance of LocalePack.
17 18 19 20 21 22 |
# File 'app/components/hakumi_components/calendar/locale_pack.rb', line 17 def initialize(days_short:, days_full:, months_short:, months_full:) @days_short = T.let(days_short, T::Array[String]) @days_full = T.let(days_full, T::Array[String]) @months_short = T.let(months_short, T::Array[String]) @months_full = T.let(months_full, T::Array[String]) end |
Instance Attribute Details
#days_full ⇒ Object (readonly)
Returns the value of attribute days_full.
25 26 27 |
# File 'app/components/hakumi_components/calendar/locale_pack.rb', line 25 def days_full @days_full end |
#days_short ⇒ Object (readonly)
Returns the value of attribute days_short.
25 26 27 |
# File 'app/components/hakumi_components/calendar/locale_pack.rb', line 25 def days_short @days_short end |
#months_full ⇒ Object (readonly)
Returns the value of attribute months_full.
25 26 27 |
# File 'app/components/hakumi_components/calendar/locale_pack.rb', line 25 def months_full @months_full end |
#months_short ⇒ Object (readonly)
Returns the value of attribute months_short.
25 26 27 |
# File 'app/components/hakumi_components/calendar/locale_pack.rb', line 25 def months_short @months_short end |