Module: Rubicons::WeatherIcons::RailsHelper

Included in:
Phlex
Defined in:
lib/rubicons/weather_icons/rails_helper.rb

Overview

Rails view helper for Weather Icons

Instance Method Summary collapse

Instance Method Details

#weather_icon(name, options = {}) ⇒ Object



7
8
9
# File 'lib/rubicons/weather_icons/rails_helper.rb', line 7

def weather_icon(name, options = {})
  Rubicons::WeatherIcons.icon(name, **options).html_safe
end

#weather_icon!(name, options = {}) ⇒ Object



11
12
13
# File 'lib/rubicons/weather_icons/rails_helper.rb', line 11

def weather_icon!(name, options = {})
  Rubicons::WeatherIcons.icon!(name, **options).html_safe
end