Class: Deadlink::MdFile

Inherits:
Object
  • Object
show all
Defined in:
lib/deadlink/md_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#headersObject (readonly)

Returns the value of attribute headers.



4
5
6
# File 'lib/deadlink/md_file.rb', line 4

def headers
  @headers
end

Returns the value of attribute link_paths.



4
5
6
# File 'lib/deadlink/md_file.rb', line 4

def link_paths
  @link_paths
end

#pathObject (readonly)

Returns the value of attribute path.



4
5
6
# File 'lib/deadlink/md_file.rb', line 4

def path
  @path
end