Class: SqlPostgres::NullConnection
- Inherits:
-
Object
- Object
- SqlPostgres::NullConnection
- Defined in:
- lib/sqlpostgres/NullConnection.rb
Overview
This is a special connection that is used when there isn’t a real one. Any attempt to use it causes a NoConnection exception.
Instance Method Summary collapse
-
#method_missing(method, *args) ⇒ Object
Raises NoConnection.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
Raises NoConnection
10 11 12 |
# File 'lib/sqlpostgres/NullConnection.rb', line 10 def method_missing(method, *args) raise NoConnection end |