attribute :: method ::入力可能

attribute :: method :: tpeableは、一連の属性ハンドラメソッドを実装するPerlモジュールです。
今すぐダウンロード

attribute :: method ::入力可能 ランキングとまとめ

広告

  • Rating:
  • ライセンス:
  • Perl Artistic License
  • 価格:
  • FREE
  • 出版社名:
  • Jeremiah Jordan
  • 出版社のWebサイト:
  • http://search.cpan.org/jjordan/Attribute-Method-Typeable-1.09/lib/Attribute/Method/Typeable.pm

attribute :: method ::入力可能 タグ


attribute :: method ::入力可能 説明

attribute :: method :: tpeableは、一連の属性ハンドラメソッドを実装するPerlモジュールです。 attribute :: method :: tpeableは、関数とメソッドの引数checks.ysynopsis package myClassで使用するための一連の属性ハンドラメソッドを実装するPerlモジュールです。 mixin qw {attribute :: method :: tpeable}を使用してください。 #or使用基本QW {attribute :: method :: tpeable}; sub mymethod:public(int int){My $ self = shift;私の($ a、$ b)= @_; $ A + $ Bを返します。その他のMethod:public(OtherClass SomeClass){My $ Self = Shift; My($ OBJ1、$ OBJ2)= @; #メトディのものここに。 privateMethod:プライベート(スカラー、スカラー、スカラ){My $ self = shift;私の$ literal = Shift。私の$ litorref =シフト。私の$ scalarref = shift。 #メソディのもの。 sub protectectemethod:保護されている(その他){My $ Self = Shift;私の$ alter = shift; #メソディのもの。サブ機能:関数(配列、コード、ハッシュ){#ファジンスタッフィングここで。 My($ ArrayRef、$ CODEREF、$ HASHREF)= @_;サブファンクション:機能(float array o list){My($ arg1、$ arg2、@else)= @_; $ arg2 - > = $ arg1; if(スカラー(@else)){}#その他の機能スタッフ。 ###あなたのコードに:#大丈夫:$ object-> mymethod(1,2); #例外:: paramerror例外:$ Object-> MyMethod(1、 "Apple")をスローします。 #も例外:: paramerror例外:$ object-> mymethod(7); #例外:: methodError例外:mymethod( 'myclass'、3,4)。 #mice :: methodError例外#それがmyClassにない限り:$ Object-> PrivateMethod(otherClass-> new、someclass-> new); #また、例外がスローされます:: MethodError例外#を、それはMyClassのか、MyClassのサブクラスでいない限り:$オブジェクト - > protectedMethod($ブツ);条件:・パール・属性::ハンドラ・データ::タイプ・テスト:: SimpleUnit・スカラー:: util・フック:: wrapsub・例外::クラス


attribute :: method ::入力可能 関連ソフトウェア