Class: NanDoc::ParseReadme::DeferredParse
- Inherits:
-
Object
- Object
- NanDoc::ParseReadme::DeferredParse
- Defined in:
- lib/nandoc/parse-readme.rb
Class Attribute Summary collapse
-
.files ⇒ Object
readonly
Returns the value of attribute files.
Instance Method Summary collapse
-
#initialize(path, section) ⇒ DeferredParse
constructor
A new instance of DeferredParse.
- #strip ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(path, section) ⇒ DeferredParse
Returns a new instance of DeferredParse.
79 80 81 82 |
# File 'lib/nandoc/parse-readme.rb', line 79 def initialize path, section @path, @section = path, section @as_string = nil end |
Class Attribute Details
.files ⇒ Object (readonly)
Returns the value of attribute files.
77 78 79 |
# File 'lib/nandoc/parse-readme.rb', line 77 def files @files end |
Instance Method Details
#strip ⇒ Object
83 84 85 |
# File 'lib/nandoc/parse-readme.rb', line 83 def strip as_string.strip end |
#to_s ⇒ Object
86 87 88 |
# File 'lib/nandoc/parse-readme.rb', line 86 def to_s as_string # can't simply alias it b/c it is private end |