Method: RDoc::Markdown::Literals#current_line
- Defined in:
-
lib/rdoc/markdown/literals.rb,
lib/rdoc/markdown/literals.rb
63 64 65 66 67 68 |
# File 'lib/rdoc/markdown/literals.rb', line 63 def current_line(target=pos) if line = position_line_offsets.bsearch_index {|x| x > target } return line + 1 end raise "Target position #{target} is outside of string" end |