module Healthicons::Rails::ViewHelpers

Public Instance Methods

healthicon(icon, **options) click to toggle source

Allow the healthcare icon to be called in rails, so icons can be added to the views

@param icon [String] icon image name @param options [Hash] additional attributes you want to apply to the SVG @return [String] the SVG/XML contents of the icon

# File lib/healthicons/rails/view_helpers.rb, line 11
def healthicon(icon, **options)
  Healthicons::Icon.call(icon, options)&.html_safe
end