module Antelope::Ace::Scanner::Third
Scans the third part. Everything after the content boundry is copied directly into the output.
Public Instance Methods
scan_third_part()
click to toggle source
Scans the third part. It should start with a content boundry; raises an error if it does not. It then scans until the end of the file.
@raise [SyntaxError] if somehow there is no content
boundry.
@return [void]
# File lib/antelope/ace/scanner/third.rb, line 18 def scan_third_part @scanner.scan(CONTENT_BOUNDRY) or error! tokens << [:third] tokens << [:copy, @scanner.scan(/[\s\S]+/m) || ""] end