Changeset 12449

Show
Ignore:
Timestamp:
05/26/08 18:40:26 (5 years ago)
Author:
hidek
Message:

done w/ has+

Files:
1 modified

Legend:

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

    r12071 r12449  
    615615Here is another example, but within the context of a role: 
    616616 
    617 もう一つroleのコンテキストの中での例をあげます。 
     617もう一つ、roleのコンテキストでの例をあげます。 
    618618 
    619619  package Foo::Role; 
     
    636636and altering it within the bounds of this feature.  
    637637 
     638この場合、roleが供給したアトリビュートを受け取ってこの機能の範囲内で変更します。 
     639 
    638640Aside from where the attributes come from (one from superclass, the other  
    639641from a role), this feature works exactly the same. This feature is restricted  
     
    641643allowed to change the following attributes: 
    642644 
     645属性がどこから来るか(一つはスーパークラスから、もう一つはroleから)に 
     646かかわらず、この機能は全く同じように動作します。少なくともいくつかの健全性を 
     647強制するため、この機能にはI<いくつか>の制限があります。変更が許されている 
     648アトリビュートは以下のものだけです。 
     649 
    643650=over 4 
    644651 
     
    647654Change the default value of an attribute. 
    648655 
     656アトリビュートのデフォルトを変更する 
     657 
    649658=item I<coerce> 
    650659 
    651660Change whether the attribute attempts to coerce a value passed to it. 
    652661 
     662アトリビュートに渡された値を強制型変換しようとするかどうかに関わらず変更する 
     663 
    653664=item I<required> 
    654665 
    655666Change if the attribute is required to have a value. 
    656667 
     668アトリビュートが値を持っていることが要求されていたら変更する 
     669 
    657670=item I<documentation> 
    658671 
    659672Change the documentation string associated with the attribute. 
    660673 
     674アトリビュートと関係するドキュメンテーション文字列を変更する 
     675 
    661676=item I<lazy> 
    662677 
    663678Change if the attribute lazily initializes the slot. 
    664679 
     680アトリビュートがスロットを遅延初期化したら変更する 
     681 
    665682=item I<isa> 
    666683 
    667684You I<are> allowed to change the type without restriction.  
     685 
     686型の変更は制限なくI<行えます> 
    668687 
    669688It is recommended that you use this freedom with caution. We used to  
     
    672691policy descision.  
    673692 
     693この自由な機能は用心して使うことが推奨されます。かつて、タイプが親タイプの 
     694サブタイプの時のみこの拡張を許可していましたが、制限が強すぎるので 
     695ポリシーとしておく方がよいと考えました。 
     696 
    674697=item I<handles> 
    675698 
     
    677700allowed to I<change> one. 
    678701 
     702新しいC<handles>の定義をI<追加>するだけではなく、I<変更>することができます。 
     703 
    679704=item I<builder> 
    680705 
     
    682707allowed to I<change> one. 
    683708 
     709新しいC<builder>の定義をI<追加>するだけではなく、I<変更>することができます。 
     710 
    684711=item I<metaclass> 
    685712 
    686713You are allowed to B<add> a new C<metaclass> definition, but you are 
    687714B<not> allowed to I<change> one. 
     715 
     716新しいC<metaclass>の定義をI<追加>するだけではなく、I<変更>することができます。 
    688717 
    689718=item I<traits> 
     
    692721These traits will be composed into the attribute, but pre-existing traits 
    693722B<are not> overridden, or removed. 
     723 
     724新しいC<traits>の定義をI<追加>するだけではなく、I<変更>することができます。 
     725これらのtraitsはアトリビュート内に形成されますが、前もって存在するtraitsは 
     726オーバーライドや削除されることはB<ありません>。 
    694727 
    695728=back