Method: EmailDoc::Document#pathname
- Defined in:
- lib/email_doc/document.rb
#pathname ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/email_doc/document.rb', line 38 def pathname @pathname ||= begin dir = './doc/mail/' path = ex.file_path.gsub(%r<\./spec/mailers/(.+)_spec\.rb>, '\1.md') Pathname.new(dir + path) end end |