Class: ContentBlockTools::TimePeriod::StartMonthAsWordComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- ContentBlockTools::TimePeriod::StartMonthAsWordComponent
- Defined in:
- app/components/content_block_tools/time_period/start_month_as_word_component.rb
Instance Method Summary collapse
-
#initialize(start_date:) ⇒ StartMonthAsWordComponent
constructor
A new instance of StartMonthAsWordComponent.
- #render ⇒ Object
Methods included from OverrideClasses
#font_classes, #font_size_class, #font_weight_class, #margin_classes, #padding_classes
Methods included from Govspeak
Constructor Details
#initialize(start_date:) ⇒ StartMonthAsWordComponent
Returns a new instance of StartMonthAsWordComponent.
4 5 6 |
# File 'app/components/content_block_tools/time_period/start_month_as_word_component.rb', line 4 def initialize(start_date:) @start_date = start_date end |
Instance Method Details
#render ⇒ Object
8 9 10 11 12 |
# File 'app/components/content_block_tools/time_period/start_month_as_word_component.rb', line 8 def render return "" unless start_date render_in(view_context) end |