Module: Copland::ServicePoint::Fixated

Defined in:
lib/copland/service-point.rb

Overview

When a service point is fixated, it will extend this module. This causes certain operations on the service point to become illegal, or to do nothing.

Instance Method Summary collapse

Instance Method Details

#add_pending_interceptor(*args) ⇒ Object

Raises DisallowedOperationException.



263
264
265
266
# File 'lib/copland/service-point.rb', line 263

def add_pending_interceptor( *args )
  raise DisallowedOperationException, 
    "cannot add pending interceptors to a fixated service point"
end

#fixate!Object

Does nothing.



269
270
271
# File 'lib/copland/service-point.rb', line 269

def fixate!
  # does nothing
end

#fixated?Boolean

Returns true.

Returns:

  • (Boolean)


274
275
276
# File 'lib/copland/service-point.rb', line 274

def fixated?
  true
end