Method: Primer::BaseComponent#call

Defined in:
app/components/primer/base_component.rb

#callObject


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
    (@tag, @trim ? trimmed_content : content, @content_tag_args.merge(@result))
  end
end