Module: Sidebars::Concerns::HasIcon

Included in:
Menu
Defined in:
lib/sidebars/concerns/has_icon.rb

Instance Method Summary collapse

Instance Method Details

#icon_or_image?Boolean

Returns:

  • (Boolean)

24
25
26
# File 'lib/sidebars/concerns/has_icon.rb', line 24

def icon_or_image?
  sprite_icon || image_path
end

#image_html_optionsObject


20
21
22
# File 'lib/sidebars/concerns/has_icon.rb', line 20

def image_html_options
  {}
end

#image_pathObject


16
17
18
# File 'lib/sidebars/concerns/has_icon.rb', line 16

def image_path
  nil
end

#sprite_iconObject


8
9
10
# File 'lib/sidebars/concerns/has_icon.rb', line 8

def sprite_icon
  nil
end

#sprite_icon_html_optionsObject


12
13
14
# File 'lib/sidebars/concerns/has_icon.rb', line 12

def sprite_icon_html_options
  {}
end