public
Description: Rubinius, the Ruby VM
Homepage: http://rubini.us
Clone URL: git://github.com/evanphx/rubinius.git
rubinius / kernel / platform / fixnum.rb
100644 24 lines (18 sloc) 0.364 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
##
# Platform-specific behavior for Fixnum.
 
class Platform::Fixnum
 
  ##
  # The maximum value that a Fixnum can hold.
  #--
  # TODO This is a method needs to have a consistent interface see e.g.
  # Platform::Float
 
  def self.MAX
    # (2**29) - 1
    0x1fff_ffff
  end
 
  ##
  # The minimum value a Fixnum can hold.
 
  def self.MIN
    ~0x1fff_ffff
  end
end