Module: Codebreaker::Valid

Included in:
SecretCode, User
Defined in:
lib/modules/valid.rb

Instance Method Summary collapse

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


5
6
7
8
9
10
# File 'lib/modules/valid.rb', line 5

def valid?
  validate!
  true
rescue StandardError
  false
end