class Contracts::HashAlgArg
Public Class Methods
to_s()
click to toggle source
# File lib/custom_contracts.rb, line 69 def self.to_s 'must be a uppercase String specifying the hash algorithm to use [NONE, SHA1, SHA256].' end
valid?(val)
click to toggle source
# File lib/custom_contracts.rb, line 65 def self.valid? val Contracts::Enum['NONE', 'SHA1', 'SHA256'].valid?(val) end