Module: Peeek::Readily

Defined in:
lib/peeek.rb

Instance Method Summary collapse

Instance Method Details

#peeek(*method_specs) {|call| ... } ⇒ Object

Register a hook to methods of self to the current Peeek object.

Parameters:

  • method_specs (Array<String>, Array<Symbol>)

    method specifiers of the object. see also examples of Hook.create

Yields:

  • (call)

    process a call to the methods. give optionally

Yield Parameters:

See Also:



140
141
142
# File 'lib/peeek.rb', line 140

def peeek(*method_specs, &process)
  Peeek.current.hook(self, *method_specs, &process)
end