class String
Public Instance Methods
dateify()
click to toggle source
# File lib/bank_crawlers/hapoalim/string_patches.rb, line 2 def dateify Date.parse("#{self} 2014") rescue Date.today end
numerify()
click to toggle source
# File lib/bank_crawlers/hapoalim/string_patches.rb, line 6 def numerify self.gsub(/[,.]/, '').to_i/100.0 end