Method: AutomobileFuel.determine_fallback
- Defined in:
- lib/earth/automobile/automobile_fuel.rb
.determine_fallback(method) ⇒ Object
62 63 64 65 66 67 68 |
# File 'lib/earth/automobile/automobile_fuel.rb', line 62 def determine_fallback(method) if method =~ /units/ gasoline.send(method) else (fallback_blend_portion * diesel.send(method)) + ((1 - fallback_blend_portion) * gasoline.send(method)) end end |