Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/core_ext/string.rb
Instance Method Summary collapse
Instance Method Details
#resembles_base64? ⇒ Boolean
23 24 25 |
# File 'lib/core_ext/string.rb', line 23 def resembles_base64? self.chomp.length % 4 == 0 && self.chomp =~ /^[A-Za-z0-9+\/=]+\Z/ end |