pub fn create_method(&self, name: &str) -> Result<RefValue, String> {
        let builtin = self.get_method(name)?;
        return Ok(RefValue::from(Method {
            object: self.clone(),
            method: RefValue::from(builtin),
        }));
    }
/** Creates a callable Method object from a value and a given builtin. */
Creates a callable Method object from a value and a given builtin.
Creates a callable Method object from a value and a given builtin .
pub fn create_method(&self, name: &str) -> Result<RefValue, String> {
        let builtin = self.get_method(name)?;
        return Ok(RefValue::from(Method {
            object: self.clone(),
            method: RefValue::from(builtin),
        }));
    }
pub fn create_method ( & self , name : & str ) -> Result < RefValue , String > { let builtin = self . get_method ( name ) ? ; return Ok ( RefValue :: from ( Method { object : self . clone ( ) , method : RefValue :: from ( builtin ) , } ) ) ; }
Creates a callable Method object from a value and a given builtin.
Creates a callable Method object from a value and a given builtin .
&self
name
&str
&self
name
&str