Class: LegalToMarkdown::FileToParse

Inherits:
Object
  • Object
show all
Defined in:
lib/legal_markdown/legal_to_markdown/load_source.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, output) ⇒ FileToParse

Returns a new instance of FileToParse.



8
9
10
11
12
# File 'lib/legal_markdown/legal_to_markdown/load_source.rb', line 8

def initialize(file, output)
  @input_file = file; @headers = nil; @content = ""; @writer = output
  load; get_the_partials; parse; set_the_parsers
  @orig_headers = @headers.clone if @headers
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



6
7
8
# File 'lib/legal_markdown/legal_to_markdown/load_source.rb', line 6

def content
  @content
end

#docinfoObject

Returns the value of attribute docinfo.



6
7
8
# File 'lib/legal_markdown/legal_to_markdown/load_source.rb', line 6

def docinfo
  @docinfo
end

#headersObject

Returns the value of attribute headers.



6
7
8
# File 'lib/legal_markdown/legal_to_markdown/load_source.rb', line 6

def headers
  @headers
end

#leadersObject

Returns the value of attribute leaders.



6
7
8
# File 'lib/legal_markdown/legal_to_markdown/load_source.rb', line 6

def leaders
  @leaders
end

#mixinsObject

Returns the value of attribute mixins.



6
7
8
# File 'lib/legal_markdown/legal_to_markdown/load_source.rb', line 6

def mixins
  @mixins
end

#writerObject

Returns the value of attribute writer.



6
7
8
# File 'lib/legal_markdown/legal_to_markdown/load_source.rb', line 6

def writer
  @writer
end