Refactoring: make 'retracted' an attribute of the Extruder object

This commit is contained in:
Alessandro Ranellucci 2012-08-22 18:57:03 +02:00
parent 97c3756034
commit 075213c731
3 changed files with 12 additions and 8 deletions

View file

@ -10,6 +10,7 @@ use constant OPTIONS => [qw(
)];
has $_ => (is => 'ro', required => 1) for @{&OPTIONS};
has 'retracted' => (is => 'rw', default => sub {0} );
has 'e_per_mm3' => (is => 'lazy');
has 'retract_speed_mm_min' => (is => 'lazy');
has '_mm3_per_mm_cache' => (is => 'ro', default => sub {{}});