Class: LegalToMarkdown::FileToParse
- Inherits:
-
Object
- Object
- LegalToMarkdown::FileToParse
- Defined in:
- lib/legal_markdown/legal_to_markdown/load_source.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#docinfo ⇒ Object
Returns the value of attribute docinfo.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#leaders ⇒ Object
Returns the value of attribute leaders.
-
#mixins ⇒ Object
Returns the value of attribute mixins.
-
#writer ⇒ Object
Returns the value of attribute writer.
Instance Method Summary collapse
-
#initialize(file, output) ⇒ FileToParse
constructor
A new instance of FileToParse.
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
#content ⇒ Object
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 |
#docinfo ⇒ Object
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 |
#headers ⇒ Object
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 |
#leaders ⇒ Object
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 |
#mixins ⇒ Object
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 |
#writer ⇒ Object
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 |