Class: Transit::WriteHandlers::IntHandler
- Inherits:
-
Object
- Object
- Transit::WriteHandlers::IntHandler
- Defined in:
- lib/transit/write_handlers.rb
Instance Method Summary collapse
Instance Method Details
#rep(i) ⇒ Object
235 |
# 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) ⇒ Object
236 |
# File 'lib/transit/write_handlers.rb', line 236 def string_rep(i) i.to_s end |
#tag(i) ⇒ Object
234 |
# File 'lib/transit/write_handlers.rb', line 234 def tag(i) i > MAX_INT || i < MIN_INT ? "n" : "i" end |