libwww-perl-6.04 > LWP::MemberMixin
libwww-perl-6.04

名前

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 が存在すれば、メンバ変数のための新しい値として使われます。 それが存在していなければ、現在の値には触れられません。 どちらの場合もメンバ変数の前の値が返されます。