Module: HTTPX::PosMethods

Defined in:
lib/httpx/extensions.rb

Overview

Ruby 2.3 Backport (Numeric#positive?)

Instance Method Summary collapse

Instance Method Details

#positive?Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/httpx/extensions.rb', line 39

def positive?
  self > 0
end