Module: Compass::MustImplement

Included in:
Context, Notification::Provider, Search::Provider
Defined in:
lib/compass/must_implement.rb

Instance Method Summary collapse

Instance Method Details

#must_implement(method) ⇒ Object

Raises:

  • (NotImplementedError)


3
4
5
# File 'lib/compass/must_implement.rb', line 3

def must_implement(method)
  raise NotImplementedError, "#{self.class} must implement ##{method}"
end