Method: Lookbook::Page#path
- Defined in:
- lib/lookbook/page.rb
#path ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/lookbook/page.rb', line 29 def path rel_path = @pathname.relative_path_from(@base_path) _path = (rel_path.dirname.to_s == "." ? name : "#{rel_path.dirname}/#{name}") _path.gsub!("[#{tab}]", "") if tab? _path end |