Class: Elisp2any::Paragraph
- Inherits:
-
Object
- Object
- Elisp2any::Paragraph
- Extended by:
- Forwardable
- Includes:
- Enumerable
- Defined in:
- lib/elisp2any/paragraph.rb
Instance Attribute Summary collapse
-
#end_row ⇒ Object
readonly
TODO: delete.
Class Method Summary collapse
Instance Method Summary collapse
-
#code? ⇒ Boolean
TODO: delete.
-
#initialize(node, lines, end_row) ⇒ Paragraph
constructor
TODO: delete node and end_row.
Constructor Details
#initialize(node, lines, end_row) ⇒ Paragraph
TODO: delete node and end_row
20 21 22 23 24 |
# File 'lib/elisp2any/paragraph.rb', line 20 def initialize(node, lines, end_row) # :nodoc: @node = node @lines = lines @end_row = end_row end |
Instance Attribute Details
#end_row ⇒ Object (readonly)
TODO: delete
17 18 19 |
# File 'lib/elisp2any/paragraph.rb', line 17 def end_row @end_row end |
Class Method Details
.scan(scanner) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/elisp2any/paragraph.rb', line 6 def self.scan(scanner) scanner = StringScanner.new(scanner) unless scanner.respond_to?(:skip) lines = [] while (line = Line.scan(scanner)) lines << line end lines.empty? and return new(:TODO, lines, :TODO) end |
Instance Method Details
#code? ⇒ Boolean
TODO: delete
27 28 29 |
# File 'lib/elisp2any/paragraph.rb', line 27 def code? false end |