class Numeric

Cast a number to an id.

Public Instance Methods

to_i_id() click to toggle source

Cast me to an int.

3.14.to_i_id
#=> 3
# File lib/sixarm_ruby_to_id/numeric.rb, line 11
def to_i_id
  to_i
end
to_i_ids() click to toggle source

Cast me to a list of int.

3.14.to_i_ids
#=> [3]
# File lib/sixarm_ruby_to_id/numeric.rb, line 20
def to_i_ids
  [to_i]
end