Function magnus::current_receiver
source · [−]pub fn current_receiver<T>() -> Result<T, Error> where
T: TryConvert,
Expand description
Return the Ruby self
of the current method context.
Returns Err
if called outside a method context or the conversion fails.