summaryrefslogtreecommitdiff
path: root/lib/menu.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/menu.rb')
-rw-r--r--lib/menu.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/menu.rb b/lib/menu.rb
index 4da8441..b586151 100644
--- a/lib/menu.rb
+++ b/lib/menu.rb
@@ -50,6 +50,10 @@ class Menu
end
end
+ def path_str
+ @path_str ||= path.join('/')
+ end
+
def each(&block)
children.each(&block)
end