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.
75 76 77 78 |
# File 'lib/nandoc/parse-readme.rb', line 75 def initialize path, section @path, @section = path, section @as_string = nil end |
Class Attribute Details
.files ⇒ Object (readonly)
Returns the value of attribute files.
73 74 75 |
# File 'lib/nandoc/parse-readme.rb', line 73 def files @files end |
Instance Method Details
#strip ⇒ Object
79 80 81 |
# File 'lib/nandoc/parse-readme.rb', line 79 def strip as_string.strip end |
#to_s ⇒ Object
82 83 84 |
# File 'lib/nandoc/parse-readme.rb', line 82 def to_s as_string # can't simply alias it b/c it is private end |