Badger::Class Behind the Scenes

package Your::Forager;
use Badger::Class 'class';

class->get_methods('foo bar baz');
class->set_methods('wiz bang');
Thus Spake Andy:

Those Badger::Class import/export hooks are really just a bit of syntactic sugar that gets mapped down to Badger::Class methods. We can use these directly by importing the class subroutine. This returns a Badger::Class object for the calling package (e.g. Your::Forager). You can then call various methods to manipulate the class, e.g. define a base class, add accessor methods, etc.