Skip to content

Commit

Permalink
implement Attribute.{get,set}_value
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Sep 29, 2010
1 parent 6241883 commit 100b868
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/Attribute.pm
Expand Up @@ -3,4 +3,11 @@ augment class Attribute {
$!has_accessor ?? True !! False
}
method Str() { self.name }

method get_value(Mu $obj) {
pir::getattribute__PPS($obj, self.name);
}
method set_value(Mu $obj, Mu $new_val) {
pir::setattribute__vPSP($obj, self.name, $new_val);
}
}

0 comments on commit 100b868

Please sign in to comment.