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