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

#rootObject



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

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

#source_rootObject



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