class Madness::Breadcrumbs
Handle breadcumbs generation by converting a path to an array of links
Attributes
path[R]
Public Class Methods
new(path)
click to toggle source
# File lib/madness/breadcrumbs.rb, line 10 def initialize(path) @path = path end
Public Instance Methods
links()
click to toggle source
# File lib/madness/breadcrumbs.rb, line 14 def links path == "" ? [] : get_breadcrumbs end