--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Converts arg to a Fixnum or Bignum. Numeric types are converted directly (with floating point numbers being truncated). If arg is a String, leading radix indicators (0, 0b, and 0x) are honored. Others are converted using to_int and to_i. This behavior is different from that of String#to_i.
- !ruby/struct:SM::Flow::VERB
body: " Integer(123.999) #=> 123\n Integer("0x1a") #=> 26\n Integer(Time.new) #=> 1049896590\n"
full_name: Kernel#Integer
is_singleton: false
name: Integer
params: |
Integer(arg) => integer
visibility: public