Class: Fixnum

Inherits:
Object show all
Defined in:
lib/fixnum.rb

Instance Method Summary collapse

Instance Method Details

#failure?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/fixnum.rb', line 6

def failure?
  !successful?
end

#successful?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/fixnum.rb', line 2

def successful?
  self >= 200 && self < 300
end