class Leeloo::Secret
Attributes
name[R]
Public Class Methods
new(name)
click to toggle source
# File lib/leeloo/secret.rb, line 10 def initialize name @name = name end
Public Instance Methods
==(secret)
click to toggle source
# File lib/leeloo/secret.rb, line 14 def == secret @name == secret.name end
erase()
click to toggle source
# File lib/leeloo/secret.rb, line 26 def erase # erase the secret end
footprint()
click to toggle source
# File lib/leeloo/secret.rb, line 30 def footprint # a footprint is a token proving the authenticity of a secret end
read()
click to toggle source
# File lib/leeloo/secret.rb, line 18 def read # returns the secret end
write(phrase)
click to toggle source
# File lib/leeloo/secret.rb, line 22 def write phrase # write the secret end