Class Origami::Integer
In: sources/parser/numeric.rb
sources/parser/obfuscation.rb
Parent: DelegateClass(Bignum)

Class representing an Integer Object.

Methods

new  

Included Modules

Number

External Aliases

to_i -> value
to_s -> to_obfuscated_str

Public Class methods

Creates a new Integer from a Ruby Fixnum / Bignum.

i:The Integer value.

[Source]

     # File sources/parser/numeric.rb, line 109
109:     def initialize(i = 0, indirect = false)
110:       
111:       unless i.is_a?(::Integer)
112:         raise TypeError, "Expected type Fixnum or Bignum, received #{i.class}."
113:       end
114:       
115:       super(indirect, i)
116:       
117:     end

[Validate]