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