Class: RSpec::Matchers::BuiltIn::ReliableMatchData Private
- Inherits:
- 
      Object
        - Object
- RSpec::Matchers::BuiltIn::ReliableMatchData
 
- Defined in:
- lib/rspec/matchers/built_in/match.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Used to wrap match data and make it reliable for 1.8.7
Instance Method Summary (collapse)
- 
  
      - (Object) captures 
  
  private
    returns an array of captures from the match data. 
- 
  
      - (ReliableMatchData) initialize(match_data) 
  
    constructor
  private
    A new instance of ReliableMatchData. 
- 
  
      - (Object) names 
  
  private
    Returns match data names for named captures. 
Constructor Details
- (ReliableMatchData) initialize(match_data)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ReliableMatchData
| 73 74 75 | # File 'lib/rspec/matchers/built_in/match.rb', line 73 def initialize(match_data) @match_data = match_data end | 
Instance Method Details
- (Object) captures
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
returns an array of captures from the match data
| 96 97 98 | # File 'lib/rspec/matchers/built_in/match.rb', line 96 def captures match_data.captures end | 
- (Object) names
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns match data names for named captures
| 81 82 83 | # File 'lib/rspec/matchers/built_in/match.rb', line 81 def names [] end |