Class: SqlPostgres::NullConnection

Inherits:
Object
  • Object
show all
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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object

Raises NoConnection

Raises:



10
11
12
# File 'lib/sqlpostgres/NullConnection.rb', line 10

def method_missing(method, *args)
  raise NoConnection
end