Method: Primer::BaseComponent#call
- Defined in:
- app/components/primer/base_component.rb
permalink #call ⇒ Object
[View source]
169 170 171 172 173 174 175 |
# File 'app/components/primer/base_component.rb', line 169 def call if SELF_CLOSING_TAGS.include?(@tag) tag(@tag, @content_tag_args.merge(@result)) else content_tag(@tag, @trim ? trimmed_content : content, @content_tag_args.merge(@result)) end end |