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