class RSpec::Matchers::BuiltIn::ReliableMatchData

@api private Used to wrap match data and make it reliable for 1.8.7

Attributes

match_data[R]

Public Class Methods

new(match_data) click to toggle source
# File lib/rspec/matchers/built_in/match.rb, line 73
def initialize(match_data)
  @match_data = match_data
end

Public Instance Methods

captures() click to toggle source

@api private returns an array of captures from the match data @return Array

# File lib/rspec/matchers/built_in/match.rb, line 98
def captures
  match_data.captures
end
names() click to toggle source

@api private Returns match data names for named captures @return Array :nocov:

# File lib/rspec/matchers/built_in/match.rb, line 82
def names
  []
end