Class: Creds::NullCredentials

Inherits:
Object
  • Object
show all
Defined in:
lib/creds.rb

Overview

Credentials that are always nil

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*_args) ⇒ Object



16
17
18
# File 'lib/creds.rb', line 16

def method_missing(*_args)
  nil
end

Instance Method Details

#nil?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/creds.rb', line 20

def nil?
  true
end

#respond_to_missing?(_name) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/creds.rb', line 12

def respond_to_missing?(_name)
  true
end