NAME
Object::KVC::String - String wrapper class
SYNOPSIS
use Object::KVC::String;
my $string_1 = Object::KVC::String->new("some string");
my $string_2 = Object::KVC::String->new("some string");
print $string_1->as_string();
$string_1->equals( $string_2 ) ? print "Yes, the objects are equal";
DESCRIPTION
Object::KVC::String is a string wrapper class for use as a value in an Object::KVC::Hash object.
METHODS
new( 'string' )
The constructor.
my $string = Object::KVC::String->new( "string" );
String to be wrapped must be provided as an argument. Leading and trailing whitespace is stripped.
equals( <Object::KVC::String> )
Returns true if the wrapped strings are 'eq'
$string_1->equals( $string_2 );
contains( <Object::KVC::String> )
Returns true if the wrapped strings are 'eq'
$string_1->contains( $string_2 );
intersects( <Object::KVC::String> )
Returns true if the wrapped strings are 'eq'
$string_1->intersects( $string_2 );
as_string()
Returns the string value
$string_1->as_string();
COPYRIGHT AND LICENSE
Object::KVC::String Copyright (C) 2012 Trystan Johnson
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.