Method: RDoc::Markdown::Literals#current_character

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

#current_character(target = pos) ⇒ Object



79
80
81
82
83
84
# File 'lib/rdoc/markdown/literals.rb', line 79

def current_character(target=pos)
  if target < 0 || target >= string.size
    raise "Target position #{target} is outside of string"
  end
  string[target, 1]
end