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

#rootObject



9
10
11
# File 'lib/way_of_working/paths.rb', line 9

def root
  Pathname.new(File.expand_path('../..', __dir__))
end

#source_rootObject



13
14
15
# File 'lib/way_of_working/paths.rb', line 13

def source_root
  root.join('lib', 'way_of_working', 'templates')
end