Class: Trackler::OrgmodeFile

Inherits:
DocFile
  • Object
show all
Defined in:
lib/trackler/doc_file.rb

Constant Summary

Constants inherited from DocFile

DocFile::DEFAULT_IMAGE_PATH

Instance Attribute Summary

Attributes inherited from DocFile

#basename, #dir

Instance Method Summary collapse

Methods inherited from DocFile

#exist?, find, #initialize, #name, #render

Constructor Details

This class inherits a constructor from Trackler::DocFile

Instance Method Details

#bodyObject



56
57
58
# File 'lib/trackler/doc_file.rb', line 56

def body
  Orgmode::Parser.new(File.read(path)).to_markdown
end

#extensionObject



60
61
62
# File 'lib/trackler/doc_file.rb', line 60

def extension
  "org"
end