Trait magnus::RArrayArgList

source ·
pub trait RArrayArgList {
    // Required methods
    fn into_array_arg_list_with(self, handle: &Ruby) -> RArray;
    fn contains_kw_args(&self) -> bool;
}
Expand description

Trait for types that can be used as an arguments list when calling Ruby Procs.

Required Methods§

source

fn into_array_arg_list_with(self, handle: &Ruby) -> RArray

Convert self into a type that can be used as a Ruby Proc argument list.

source

fn contains_kw_args(&self) -> bool

Whether the argument list contains keyword arguments. If true, the last element of the RArray produced by Self::into_array_arg_list_with must be a RHash

Implementors§