metasploit-framework/lib/active_support/json/encoders/numeric.rb

22 lines
267 B
Ruby

class Numeric
def to_json(options = nil) #:nodoc:
to_s
end
def as_json(options = nil) #:nodoc:
self
end
end
class Float
def to_json(options = nil) #:nodoc:
to_s
end
end
class Integer
def to_json(options = nil) #:nodoc:
to_s
end
end