class Transit::WriteHandlers::IntHandler

Public Instance Methods

rep(i) click to toggle source
# File lib/transit/write_handlers.rb, line 235
def rep(i) i > MAX_INT || i < MIN_INT ? i.to_s : i end
string_rep(i) click to toggle source
# File lib/transit/write_handlers.rb, line 236
def string_rep(i) i.to_s end
tag(i) click to toggle source
# File lib/transit/write_handlers.rb, line 234
def tag(i) i > MAX_INT || i < MIN_INT ? "n" : "i" end