Class: Mutineer::Migrate::Outcome

Inherits:
Data
  • Object
show all
Defined in:
lib/mutineer/migrate.rb

Overview

The outcome of rewriting one file in memory. text is what to write. It equals the input when nothing changed. unmapped holds bare ids that matched no mutant, in file order, each once.

split holds old ids in a mapping entry that now match several new ids, as Replacements: one mapping holds one id, so the user splits it by hand.

Instance Attribute Summary collapse

Instance Attribute Details

#replacements ⇒ Object (readonly)

Returns the value of attribute replacements

Returns:

  • (Object) —

    the current value of replacements



36
37
38
# File 'lib/mutineer/migrate.rb', line 36

def replacements
  @replacements
end

#split ⇒ Object (readonly)

Returns the value of attribute split

Returns:

  • (Object) —

    the current value of split



36
37
38
# File 'lib/mutineer/migrate.rb', line 36

def split
  @split
end

#text ⇒ Object (readonly)

Returns the value of attribute text

Returns:

  • (Object) —

    the current value of text



36
37
38
# File 'lib/mutineer/migrate.rb', line 36

def text
  @text
end

#unmapped ⇒ Object (readonly)

Returns the value of attribute unmapped

Returns:

  • (Object) —

    the current value of unmapped



36
37
38
# File 'lib/mutineer/migrate.rb', line 36

def unmapped
  @unmapped
end