Module: WayOfWorking::Paths
- Included in:
- WayOfWorking
- Defined in:
- lib/way_of_working/paths.rb
Overview
Mixin that provides a couple of pathname convenience methods
Instance Method Summary collapse
Instance Method Details
#root ⇒ Object
9 10 11 |
# File 'lib/way_of_working/paths.rb', line 9 def root Pathname.new(File.('../..', __dir__)) end |
#source_root ⇒ Object
13 14 15 |
# File 'lib/way_of_working/paths.rb', line 13 def source_root root.join('lib', 'way_of_working', 'templates') end |