Class: HakumiComponents::Calendar::LocalePack

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
app/components/hakumi_components/calendar/locale_pack.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_fullObject (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_shortObject (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_fullObject (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_shortObject (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