Method: RDoc::Markdown::Literals#show_pos

Defined in:
lib/rdoc/markdown/literals.rb

#show_posObject



126
127
128
129
130
131
132
133
# File 'lib/rdoc/markdown/literals.rb', line 126

def show_pos
  width = 10
  if @pos < width
    "#{@pos} (\"#{@string[0,@pos]}\" @ \"#{@string[@pos,width]}\")"
  else
    "#{@pos} (\"... #{@string[@pos - width, width]}\" @ \"#{@string[@pos,width]}\")"
  end
end