Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/parser/parser.rb
Instance Method Summary collapse
Instance Method Details
#line_of(pos) ⇒ Object
266 267 268 |
# File 'lib/parser/parser.rb', line 266 def line_of(pos) self[0..pos].count "\n" end |