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.



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

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

#fixate!Object

Does nothing.



276
277
278
# File 'lib/copland/service-point.rb', line 276

def fixate!
  # does nothing
end

#fixated?Boolean

Returns true.

Returns:

  • (Boolean)


281
282
283
# File 'lib/copland/service-point.rb', line 281

def fixated?
  true
end