Class: CommentExtractor::StringScanner

Inherits:
StringScanner
  • Object
show all
Defined in:
lib/comment_extractor/string_scanner.rb

Instance Method Summary collapse

Instance Method Details

#current_lineObject



5
6
7
# File 'lib/comment_extractor/string_scanner.rb', line 5

def current_line
  string[0...charpos].count("\n") + 1
end