moose

Introspecting classes

Rectangle->meta->name; # Rectangle
Rectangle->meta->version; # 0.01

Rectangle->meta->superclasses; # [ Shape ]
Rectangle->meta->class_precedence_list; # [ Shape, Moose::Object ]

Rectangle->meta->get_attribute_list; # [ height, width ]
Rectangle->meta->compute_all_applicable_attributes; # [ height, width, x, y ]

Rectangle->meta->get_method_list; # [ height, width ]
Rectangle->meta->compute_all_applicable_methods; # [ height, width, x, y, move_to, new, BUILDALL, ... ]
s | << | >> | i