Module: Antelope::Ace::Scanner::Third
- Included in:
- Antelope::Ace::Scanner
- Defined in:
- lib/antelope/ace/scanner/third.rb
Overview
Scans the third part. Everything after the content boundry is copied directly into the output.
Instance Method Summary collapse
-
#scan_third_part ⇒ void
Scans the third part.
Instance Method Details
#scan_third_part ⇒ void
This method returns an undefined value.
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.
18 19 20 21 22 23 |
# 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 |