pub trait ScanArgsBlock: ScanArgsBlock { }
Expand description

Trait implemented for types that can be retrieved as a block argument by scan_args.

This trait is implemented for Proc and Option<Proc>.

() also impliments this trait as a placeholder for when no block argument is required, although Ruby will still allow a block to be passed, it will just ignore it (as is standard for all Ruby methods).

Implementors§