pub fn method(mut self, func: FunctionBuilder<'static>, flags: MethodFlags) -> Self {
        self.methods.push((func, flags));
        self
    }
Adds a method to the class.

# Parameters

* `func` - The function builder to add to the class.
* `flags` - Flags relating to the function. See [`MethodFlags`].
src/builders/class.rs