Method: Ccrypto::CipherConfig#is_algo?

Defined in:
lib/ccrypto/configs/cipher_config.rb

#is_algo?(algo) ⇒ Boolean

Returns:

  • (Boolean)


91
92
93
94
95
96
97
# File 'lib/ccrypto/configs/cipher_config.rb', line 91

def is_algo?(algo)
  if @algo.nil? or is_empty?(@algo)
    false
  else
    (@algo.to_s.downcase =~ /#{algo}/) != nil
  end
end