class String

Public Instance Methods

resembles_base64?() click to toggle source
# File lib/core_ext/string.rb, line 23
def resembles_base64?
  self.chomp.length % 4 == 0 && self.chomp =~ /^[A-Za-z0-9+\/=]+\Z/
end