Module: HTTPX::NegMethods

Defined in:
lib/httpx/extensions.rb

Overview

Ruby 2.3 Backport (Numeric#negative?)

Instance Method Summary collapse

Instance Method Details

#negative?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/httpx/extensions.rb', line 50

def negative?
  self < 0
end