Method: JOSE::JWS#to_file

Defined in:
lib/jose/jws.rb

#to_file(file) ⇒ Fixnum

Calls #to_binary on a JOSE::JWS and then writes the binary to file.

Parameters:

  • file (String)

Returns:

  • (Fixnum)

    bytes written



348
349
350
# File 'lib/jose/jws.rb', line 348

def to_file(file)
  return File.binwrite(file, to_binary)
end