defaultã ãä¸æ¸ãã¨ãã§ããªãã®ããªï¼ package Foo; use Moose; has foo => ( is => 'rw', lazy => 1, default => sub { 100 } ); package Bar; use Moose; extends qw(Foo); # isã¨lazyãå¼ãç¶ãã§æ¬²ããï¼ has foo => ( default => sub { 200 } ); æ´¾çå ã§defaultã ãä¸æ¸ãããããã ãã©ãã¼ãã¼ã®ã¯ã§ããªãï¼ ãã£ã°hasã®å®ç¾©ãBarã«å ¨ã³ãã¼ããã®ãããã®ããªããã§ãå®ç¾©ãéè¤ããã®ããã ãªã»ã»ã»ãtriggerã¨ããäºéåãã¡ãããã ãã¼ä»ã«ã¯ããããã¨ãï¼ package Foo; use Moose; has foo => ( is => 'rw', lazy => 1, default => sub {
{{#tags}}- {{label}}
{{/tags}}