Class: Koi::SummaryList::BooleanComponent
- Defined in:
- app/components/koi/summary_list/boolean_component.rb
Instance Method Summary collapse
Methods inherited from Base
#attribute_name, #call, #initialize, #inspect, #raw_value, #to_s
Constructor Details
This class inherits a constructor from Koi::SummaryList::Base
Instance Method Details
#attribute_value ⇒ Object
10 11 12 |
# File 'app/components/koi/summary_list/boolean_component.rb', line 10 def attribute_value raw_value ? "Yes" : "No" end |
#render? ⇒ Boolean
6 7 8 |
# File 'app/components/koi/summary_list/boolean_component.rb', line 6 def render? true end |