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
- .new(match_data) ⇒ ReliableMatchData constructor Internal use only
Instance Attribute Summary
- #match_data readonly protected Internal use only
Instance Method Summary
-
#captures ⇒ Object
Internal use only
returns an array of captures from the match data.
-
#names ⇒ Object
Internal use only
Returns match data names for named captures.
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
#captures ⇒ Object
returns an array of captures from the match data
# File 'rspec-expectations/lib/rspec/matchers/built_in/match.rb', line 98
def captures match_data.captures end
#names ⇒ Object
Returns match data names for named captures
See additional method definition at line 82.
# File 'rspec-expectations/lib/rspec/matchers/built_in/match.rb', line 90
def names [] end