Class: NanDoc::ParseReadme::DeferredParse

Inherits:
Object
  • Object
show all
Defined in:
lib/nandoc/parse-readme.rb

Class Attribute Summary collapse

Instance Method Summary collapse

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

.filesObject (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

#stripObject



83
84
85
# File 'lib/nandoc/parse-readme.rb', line 83

def strip
  as_string.strip
end

#to_sObject



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