libwww-perl-5.813 > LWP::MemberMixin
libwww-perl-5.813

名前

LWP::MemberMixin - Member access mixin class

LWP::MemberMixin - メンバーアクセス mixin クラス

概要

 package Foo;
 require LWP::MemberMixin;
 @ISA=qw(LWP::MemberMixin);

説明

A mixin class to get methods that provide easy access to member variables in the %$self. Ideally there should be better Perl language support for this.

%$self に入っているメンバー変数への簡単なアクセスを提供する get メソッドのためのmixinクラスです。 理想的にはこれに対する Perl 言語によるよりよいサポートがあるべきです。

There is only one method provided:

一つだけメソッドを提供します:

_elem($elem [, $val])

Internal method to get/set the value of member variable $elem. If $val is present it is used as the new value for the member variable. If it is not present the current value is not touched. In both cases the previous value of the member variable is returned.

メンバー変数 $elem の値の取得/設定のための内部メソッド。 $val が存在すれば、メンバー変数のための新しい値として使われます。 それが存在していなければ、現在の値は触られません。 どちらの場合もメンバー変数の前の値が返されます。