Class: Hecks::Bluebook::TranslationConvert

Inherits:
Struct
  • Object
show all
Defined in:
lib/hecks/bluebook/translation.rb

Overview

One field whose VALUE, not just its name or position, changed — an old value has nothing in common with a new one, so the only honest way to bridge it is a declared, exhaustive lookup table. Paths follow TranslationMove's convention (dotted reaches a VO member); values maps every old-era value that can appear to its new-era replacement.

Instance Attribute Summary collapse

Instance Attribute Details

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



14
15
16
# File 'lib/hecks/bluebook/translation.rb', line 14

def from
  @from
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



14
15
16
# File 'lib/hecks/bluebook/translation.rb', line 14

def to
  @to
end

#valuesObject

Returns the value of attribute values

Returns:

  • (Object)

    the current value of values



14
15
16
# File 'lib/hecks/bluebook/translation.rb', line 14

def values
  @values
end