Method: Layout#layout_path
- Defined in:
- lib/tags/layout.rb
#layout_path ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/tags/layout.rb', line 39 def layout_path base_path = Dir.pwd layout_dir = 'layout' layout_path = File.join(base_path, layout_dir) unless File.exist? layout_path raise LayoutError, "Layout dir #{layout_path} not found" end layout_path end |