module Piwik::Typecast::InstanceMethods
Private Instance Methods
typecast(thing)
click to toggle source
# File lib/piwik/typecast.rb, line 10 def typecast(thing) if thing.is_a?(String) and thing =~ /^[0-9]+$/ thing.to_i else thing end end