Class: RSpec::Support::HunkGenerator

### Home Classes Methods

### In Files

- lib/rspec/support/hunk_generator.rb

### Parent

Object

### Methods

- ::new
- #hunks

### Class/Module Index

Quicksearch

- RSpec
- RSpec::CallerFilter
- RSpec::Support
- RSpec::Support::BlockSignature
- RSpec::Support::Differ
- RSpec::Support::DirectoryMaker
- RSpec::Support::EncodedString
- RSpec::Support::FormattingSupport
- RSpec::Support::FuzzyMatcher
- RSpec::Support::HunkGenerator
- RSpec::Support::InSubProcess
- RSpec::Support::LooseSignatureVerifier
- RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher
- RSpec::Support::MethodSignature
- RSpec::Support::MethodSignatureVerifier
- RSpec::Support::OS
- RSpec::Support::ObjectFormatter
- RSpec::Support::RecursiveConstMethods
- RSpec::Support::Ruby
- RSpec::Support::RubyFeatures
- RSpec::Support::ShellOut
- RSpec::Support::Spec
- RSpec::Support::StdErrSplitter
- RSpec::Support::StrictSignatureVerifier
- RSpec::Support::Version
- RSpec::Support::VersionChecker
- RSpec::Support::Warnings
- RSpec::Support::WithIsolatedStdErr
- Object
- RSpecHelpers

No matching classes.

# RSpec::Support::HunkGenerator

@private

### Public Class Methods

new(actual, expected) click to toggle source

    # File lib/rspec/support/hunk_generator.rb, line 8
    def initialize(actual, expected)
      @actual = actual
      @expected = expected
    end

### Public Instance Methods

hunks() click to toggle source

    # File lib/rspec/support/hunk_generator.rb, line 13
    def hunks
      @file_length_difference = 0
      @hunks ||= diffs.map do |piece|
        build_hunk(piece)
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.