class 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.

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

    super(i)
end