Parent

Methods

Included Modules

Class/Module Index [+]

Quicksearch

Origami::Integer

Class representing an Integer Object.

Constants

REGEXP_TOKEN

Public Class Methods

new(i = 0) click to toggle source

Creates a new Integer from a Ruby Fixnum / Bignum.

i

The Integer value.

# File lib/origami/numeric.rb, line 123
def initialize(i = 0)
  
  unless i.is_a?(::Integer)
    raise TypeError, "Expected type Fixnum or Bignum, received #{i.class}."
  end

  super(i)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.