Changeset 12156

Show
Ignore:
Timestamp:
05/22/08 01:28:41 (5 years ago)
Author:
ka2u
Message:

30% badly transrated

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • docs/moose-ja/Moose/Cookbook/Recipe1.ja.pod

    r12067 r12156  
    9494The next C<has> line is very similar, with only one difference: 
    9595 
     96次の C<has> は とても似ていますが一つだけ違うところがあります。 
     97 
    9698  has 'y' => (isa => 'Int', is => 'rw'); 
    9799 
    98100A read/write (abbreviated as C<rw>) accessor will be generated for 
    99101the C<y> attribute. 
     102 
     103read/write (短縮すると C<rw>) accessorを C<y> attributeに生成します。 
    100104 
    101105At this point the attributes have been defined, and it is time to  
     
    103107is just a subroutine defined within the package. So here we create  
    104108the C<clear> method. 
     109 
     110このpointのattributeを定義し、メソッドを定義します。 
     111Mooseでは、通常のPerl5 OOのようにメソッドをサブルーチンとして 
     112packageに定義します。では C<clear> メソッドを作ります。 
    105113 
    106114  sub clear { 
     
    116124blessed HASH references. This means they are very compatible with  
    117125other Perl 5 (non-Moose) classes as well.  
     126 
     127これはとても普通ですが、ひとつだけ付け加えるとインスタンスL<(2)>の 
     128C<x> slotに直接アクセスしています。これは読み取り専用の値が 
     129作成されています。このようにMooseオブジェクトは通常の以前からある 
     130blessされたHASHリファレンスであり、通常から逸脱する 
     131ものではありません。そしてこれは他のPerl5(Mooseではない)クラスとの 
     132互換性がよく保たれるということです。 
    118133 
    119134The next part of the code to review is the B<Point> subclass,