class Object
Public Instance Methods
pair_at(code, pos, pairs = Pairs)
click to toggle source
@param [String] code @param [Integer] pos Position of the selected character, disregarding ANSI
codes.
@param [Hash<String, String>] pairs A hash mapping each opening character
to a closing one.
@return (see AST::Root#pair_at)
# File lib/pry-coolline/paren_match.rb, line 254 def pair_at(code, pos, pairs = Pairs) Parser.parse(code, pairs).pair_at pos end