Method: JOSE::JWT.to_file

Defined in:
lib/jose/jwt.rb

.to_file(jwt, file) ⇒ Fixnum

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

Parameters:

Returns:

  • (Fixnum)

    bytes written



156
157
158
# File 'lib/jose/jwt.rb', line 156

def self.to_file(jwt, file)
  return from(jwt).to_file(file)
end