class Integer

Public Class Methods

to_parse(object)
Alias for: to_ruby
to_ruby(object) click to toggle source
# File lib/opium/extensions/integer.rb, line 3
def to_ruby(object)
  if object.is_a? Symbol
    object.to_s.to_i
  elsif object
    object.to_i
  end
end
Also aliased as: to_parse