Class Origami::Integer
In: sources/parser/obfuscation.rb
sources/parser/numeric.rb
Parent: Object

Class representing an Integer Object.

Methods

new  

Included Modules

Number

Constants

REGEXP_TOKEN = Regexp.new(TOKENS.first)

External Aliases

to_s -> to_obfuscated_str
to_i -> value

Public Class methods

Creates a new Integer from a Ruby Fixnum / Bignum.

i:The Integer value.

[Source]

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

[Validate]