Changeset 12449
- Timestamp:
- 05/26/08 18:40:26 (5 years ago)
- Files:
-
- 1 modified
-
docs/moose-ja/Moose.ja.pod (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs/moose-ja/Moose.ja.pod
r12071 r12449 615 615 Here is another example, but within the context of a role: 616 616 617 もう一つ roleのコンテキストの中での例をあげます。617 もう一つ、roleのコンテキストでの例をあげます。 618 618 619 619 package Foo::Role; … … 636 636 and altering it within the bounds of this feature. 637 637 638 この場合、roleが供給したアトリビュートを受け取ってこの機能の範囲内で変更します。 639 638 640 Aside from where the attributes come from (one from superclass, the other 639 641 from a role), this feature works exactly the same. This feature is restricted … … 641 643 allowed to change the following attributes: 642 644 645 属性がどこから来るか(一つはスーパークラスから、もう一つはroleから)に 646 かかわらず、この機能は全く同じように動作します。少なくともいくつかの健全性を 647 強制するため、この機能にはI<いくつか>の制限があります。変更が許されている 648 アトリビュートは以下のものだけです。 649 643 650 =over 4 644 651 … … 647 654 Change the default value of an attribute. 648 655 656 アトリビュートのデフォルトを変更する 657 649 658 =item I<coerce> 650 659 651 660 Change whether the attribute attempts to coerce a value passed to it. 652 661 662 アトリビュートに渡された値を強制型変換しようとするかどうかに関わらず変更する 663 653 664 =item I<required> 654 665 655 666 Change if the attribute is required to have a value. 656 667 668 アトリビュートが値を持っていることが要求されていたら変更する 669 657 670 =item I<documentation> 658 671 659 672 Change the documentation string associated with the attribute. 660 673 674 アトリビュートと関係するドキュメンテーション文字列を変更する 675 661 676 =item I<lazy> 662 677 663 678 Change if the attribute lazily initializes the slot. 664 679 680 アトリビュートがスロットを遅延初期化したら変更する 681 665 682 =item I<isa> 666 683 667 684 You I<are> allowed to change the type without restriction. 685 686 型の変更は制限なくI<行えます> 668 687 669 688 It is recommended that you use this freedom with caution. We used to … … 672 691 policy descision. 673 692 693 この自由な機能は用心して使うことが推奨されます。かつて、タイプが親タイプの 694 サブタイプの時のみこの拡張を許可していましたが、制限が強すぎるので 695 ポリシーとしておく方がよいと考えました。 696 674 697 =item I<handles> 675 698 … … 677 700 allowed to I<change> one. 678 701 702 新しいC<handles>の定義をI<追加>するだけではなく、I<変更>することができます。 703 679 704 =item I<builder> 680 705 … … 682 707 allowed to I<change> one. 683 708 709 新しいC<builder>の定義をI<追加>するだけではなく、I<変更>することができます。 710 684 711 =item I<metaclass> 685 712 686 713 You are allowed to B<add> a new C<metaclass> definition, but you are 687 714 B<not> allowed to I<change> one. 715 716 新しいC<metaclass>の定義をI<追加>するだけではなく、I<変更>することができます。 688 717 689 718 =item I<traits> … … 692 721 These traits will be composed into the attribute, but pre-existing traits 693 722 B<are not> overridden, or removed. 723 724 新しいC<traits>の定義をI<追加>するだけではなく、I<変更>することができます。 725 これらのtraitsはアトリビュート内に形成されますが、前もって存在するtraitsは 726 オーバーライドや削除されることはB<ありません>。 694 727 695 728 =back
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)