# File lib/gpgme/data.rb, line 69 def from_str(string) rdh = [] err = GPGME::gpgme_data_new_from_mem(rdh, string, string.length) exc = GPGME::error_to_exception(err) raise exc if exc rdh.first end