Libraries
»
docjs
(0.1.2)
»
Index
»
String
»
#line_of
Method: String#line_of
Defined in:
lib/parser/parser.rb
#
line_of
(pos) ⇒
Object
266 267 268
# File 'lib/parser/parser.rb', line 266
def
line_of
(
pos
)
self
[
0
..
pos
]
.
count
"
\n
"
end