Method: Primer::ConditionalWrapper#call
- Defined in:
- app/components/primer/conditional_wrapper.rb
permalink #call ⇒ Object
[View source]
16 17 18 19 20 21 22 |
# File 'app/components/primer/conditional_wrapper.rb', line 16 def call unless @condition return @trim ? trimmed_content : content end BaseComponent.new(trim: @trim, **@base_component_arguments).render_in(self) { content } end |