Class: SimpleLock::Script

Inherits:
Struct
  • Object
show all
Defined in:
lib/simple_lock/scripts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#raw ⇒ Object

Returns the value of attribute raw

Returns:

  • (Object) —

    the current value of raw



6
7
8
# File 'lib/simple_lock/scripts.rb', line 6

def raw
  @raw
end

Instance Method Details

#sha ⇒ Object



7
8
9
# File 'lib/simple_lock/scripts.rb', line 7

def sha
  @sha ||= Digest::SHA1.hexdigest(raw)
end