Parrot::PackFile::Constant - A Parrot Constant
use Parrot::PackFile::Constant;
Instances of Parrot::PackFile::Constant are used to represent constants in Parrot packfiles.
Parrot::PackFile::Constant
Note that these functions are not exported.
type_name($query)
Return the type name for $query.
$query
type_code($query)
Return the type code for $query.
new()
Returns a new instance of type PFC_NONE.
PFC_NONE
new_integer()
Returns a new integer constant instance.
new_number()
Returns a new floating-point number constant instance.
new_string()
Returns a new Parrot string constant instance.
clear()
Sets the constant type to PFC_NONE.
type()
Returns the type of the constant.
value()
Returns the value of the constant.
unpack($string)
Unpack from the string and return the number of characters that should be removed from the packed string.
packed_size()
Returns the packed size of the constant.
pack()
Packs the constant.
Parrot::PackFile
Parrot::PackFile::ConstTable
Parrot::PackFile::FixupTable
Author: Gregor N. Purdy <gregor@focusresearch.com>
To install Ruby, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ruby
CPAN shell
perl -MCPAN -e shell install Ruby
For more information on module installation, please visit the detailed CPAN module installation guide.