Module: FlagIconsRails::Rails::ViewHelpers
- Defined in:
- lib/flag-icons-rails/rails/helpers.rb
Instance Method Summary collapse
-
#flag_icon(country_code, squared: false, element: :span, **html_options) ⇒ String
Helper to render flag icon as single HTML element.
Instance Method Details
#flag_icon(country_code, squared: false, element: :span, **html_options) ⇒ String
Helper to render flag icon as single HTML element
17 18 19 20 21 |
# File 'lib/flag-icons-rails/rails/helpers.rb', line 17 def flag_icon(country_code, squared: false, element: :span, **) [:class] = flag_icon_content_class(country_code, squared, [:class]) content_tag(element, nil, ) end |