Class: Deadlink::MdFile
- Inherits:
-
Object
- Object
- Deadlink::MdFile
- Defined in:
- lib/deadlink/md_file.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#link_paths ⇒ Object
readonly
Returns the value of attribute link_paths.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(file_path, repo_root) ⇒ MdFile
constructor
A new instance of MdFile.
Constructor Details
#initialize(file_path, repo_root) ⇒ MdFile
Returns a new instance of MdFile.
6 7 8 9 10 11 |
# File 'lib/deadlink/md_file.rb', line 6 def initialize(file_path, repo_root) @path = file_path @headers = [] @link_paths = [] attribute(repo_root) end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
4 5 6 |
# File 'lib/deadlink/md_file.rb', line 4 def headers @headers end |
#link_paths ⇒ Object (readonly)
Returns the value of attribute link_paths.
4 5 6 |
# File 'lib/deadlink/md_file.rb', line 4 def link_paths @link_paths end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/deadlink/md_file.rb', line 4 def path @path end |