Class: Transit::ReadHandlers::RatioHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/transit/read_handlers.rb

Instance Method Summary collapse

Instance Method Details

#from_rep(v) ⇒ Object



83
# File 'lib/transit/read_handlers.rb', line 83

def from_rep(v) Rational(v[0], v[1]) end