Class: CommentExtractor::StringScanner
- Inherits:
-
StringScanner
- Object
- StringScanner
- CommentExtractor::StringScanner
- Defined in:
- lib/comment_extractor/string_scanner.rb
Instance Method Summary collapse
Instance Method Details
#current_line ⇒ Object
5 6 7 |
# File 'lib/comment_extractor/string_scanner.rb', line 5 def current_line string[0...charpos].count("\n") + 1 end |