class Madness::Breadcrumbs
Handle breadcumbs generation by converting a path to an array of links
Constants
- Breadcrumb
Attributes
path[R]
Public Class Methods
new(path)
click to toggle source
# File lib/madness/breadcrumbs.rb, line 11 def initialize(path) @path = path end
Public Instance Methods
links()
click to toggle source
# File lib/madness/breadcrumbs.rb, line 15 def links path == '' ? [] : breadcrumbs end
Private Instance Methods
config()
click to toggle source
# File lib/madness/breadcrumbs.rb, line 38 def config Settings.instance end