Module: MaterialIcons::MaterialIconHelper

Defined in:
app/helpers/material_icons/material_icon_helper.rb

Overview

Helper of material icons. This method return a singleton MaterialIcon class to get icons in the UI.

Constant Summary collapse

@@material_icon =

Singleton

MaterialIcon.new

Instance Method Summary collapse

Instance Method Details

#material_iconObject Also known as: mi

Reset the previous values of the MaterialIcon class and return the object to render a new icon.

Returns:

MaterialIcon instance



17
18
19
# File 'app/helpers/material_icons/material_icon_helper.rb', line 17

def material_icon
  @@material_icon.reset
end