Class: Elisp2any::FooterLine
- Inherits:
-
Object
- Object
- Elisp2any::FooterLine
- Extended by:
- Forwardable
- Defined in:
- lib/elisp2any/footer_line.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(filename) ⇒ FooterLine
constructor
A new instance of FooterLine.
Constructor Details
#initialize(filename) ⇒ FooterLine
Returns a new instance of FooterLine.
21 22 23 |
# File 'lib/elisp2any/footer_line.rb', line 21 def initialize(filename) @filename = filename end |
Class Method Details
.scan(scanner) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/elisp2any/footer_line.rb', line 5 def self.scan(scanner) scanner = StringScanner.new(scanner) unless scanner.respond_to?(:pos) pos = scanner.pos heading = Elisp2any.scan_top_heading(scanner) or return cscanner = StringScanner.new(heading) unless (filename = Elisp2any.scan_filename(cscanner)) scanner.pos = pos return end unless cscanner.skip(/ ends here\n?/) scanner.pos = pos return end new(filename) end |