[][src]Trait mruby::def::ClassLike

pub trait ClassLike where
    Self: Debug + Display
{ fn add_method(&mut self, name: &str, method: Method, args: mrb_aspec);
fn add_self_method(&mut self, name: &str, method: Method, args: mrb_aspec);
fn cstring(&self) -> &CString;
fn name(&self) -> &str;
fn enclosing_scope(&self) -> Option<EnclosingRubyScope>;
fn rclass(&self, interp: &Mrb) -> Option<*mut RClass>; fn fqname(&self) -> String { ... } }

ClassLike trait unifies class::Spec and module::Spec.

Required methods

fn add_method(&mut self, name: &str, method: Method, args: mrb_aspec)

fn add_self_method(&mut self, name: &str, method: Method, args: mrb_aspec)

fn cstring(&self) -> &CString

fn name(&self) -> &str

fn enclosing_scope(&self) -> Option<EnclosingRubyScope>

fn rclass(&self, interp: &Mrb) -> Option<*mut RClass>

Loading content...

Provided methods

fn fqname(&self) -> String

Compute the fully qualified name of a Class or module. See EnclosingRubyScope::fqname.

Loading content...

Implementors

impl ClassLike for mruby::class::Spec[src]

impl ClassLike for mruby::module::Spec[src]

Loading content...