Method: AutomobileFuel#non_liquid?

Defined in:
lib/earth/automobile/automobile_fuel.rb

#non_liquid?Boolean

Used by Automobile and AutomobileTrip to determine whether need to convert fuel efficiency units

Returns:

  • (Boolean)


72
73
74
# File 'lib/earth/automobile/automobile_fuel.rb', line 72

def non_liquid?
  energy_content_units != 'megajoules_per_litre'
end