Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cbdb95a8e9
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (9 sloc) 0.366 kb
# Apparently some of the core classes don't run through bless, so you can't
# extend them and access properties the same way. This just lets you apply
# the role Has to have your objects blessed, rather than having to do it in
# each class manually.
role Has;
method new (*@elems, *%attrs) {
my $cand = self.Array::new(@elems);
self.bless($cand, |%attrs);
}
Jump to Line
Something went wrong with that request. Please try again.