Module: SimpleMarshal::Number2

Defined in:
lib/appswarm/simple_marshal_parser.rb

Instance Method Summary collapse

Instance Method Details

#sloadObject



574
575
576
577
578
579
580
581
# File 'lib/appswarm/simple_marshal_parser.rb', line 574

def sload
  s=text_value
  if s=~/\./
    return s.to_f
  else
    return s.to_i
  end
end