Class: RmDigest::Util

Inherits:
Object
  • Object
show all
Defined in:
lib/rm-digest/util.rb

Class Method Summary collapse

Class Method Details

.toNSData(string, encoding = NSUTF8StringEncoding) ⇒ Object



5
6
7
# File 'lib/rm-digest/util.rb', line 5

def self.toNSData(string, encoding = NSUTF8StringEncoding)
  string.dataUsingEncoding(encoding)
end