Class: ContentBlockTools::TimePeriod::StartDayAndMonthComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- ContentBlockTools::TimePeriod::StartDayAndMonthComponent
- Defined in:
- app/components/content_block_tools/time_period/start_day_and_month_component.rb
Instance Method Summary collapse
-
#initialize(start_date:) ⇒ StartDayAndMonthComponent
constructor
A new instance of StartDayAndMonthComponent.
- #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:) ⇒ StartDayAndMonthComponent
Returns a new instance of StartDayAndMonthComponent.
4 5 6 |
# File 'app/components/content_block_tools/time_period/start_day_and_month_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_day_and_month_component.rb', line 8 def render return "" unless start_date render_in(view_context) end |