123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Matchers::BuiltIn::ReliableMatchData Private

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: rspec-expectations/lib/rspec/matchers/built_in/match.rb

Overview

Used to wrap match data and make it reliable for 1.8.7

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#match_data (readonly, protected)

[ GitHub ]

  
# File 'rspec-expectations/lib/rspec/matchers/built_in/match.rb', line 104

attr_reader :match_data

Instance Method Details

#capturesObject

returns an array of captures from the match data

Returns:

  • Array

[ GitHub ]

  
# File 'rspec-expectations/lib/rspec/matchers/built_in/match.rb', line 98

def captures
  match_data.captures
end

#namesObject

Returns match data names for named captures

See additional method definition at line 82.

Returns:

  • Array

[ GitHub ]

  
# File 'rspec-expectations/lib/rspec/matchers/built_in/match.rb', line 90

def names
  []
end