Class: Transit::WriteHandlers::RationalHandler

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

Instance Method Summary collapse

Instance Method Details

#rep(r) ⇒ Object


270
# File 'lib/transit/write_handlers.rb', line 270

def rep(r) [r.numerator, r.denominator] end

#string_rep(_) ⇒ Object


271
# File 'lib/transit/write_handlers.rb', line 271

def string_rep(_) nil end

#tag(_) ⇒ Object


269
# File 'lib/transit/write_handlers.rb', line 269

def tag(_) "ratio" end