Changeset 9566 for lang/perl/Data-Cloud
- Timestamp:
- 04/16/08 17:46:21 (5 years ago)
- Location:
- lang/perl/Data-Cloud/trunk
- Files:
-
- 1 added
- 1 modified
-
lib/Data/Cloud.pm (modified) (2 diffs)
-
t/07_clear.t (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Data-Cloud/trunk/lib/Data/Cloud.pm
r9564 r9566 78 78 } 79 79 80 sub clear { 81 my ( $self ) = @_; 82 my $removed = $self->data; 83 $self->{'data'} = {}; 84 return $removed; 85 } 86 80 87 1; 81 88 __END__ … … 150 157 This method removes the number of word. 151 158 159 Return value is the number of the removed word. 160 152 161 =head2 clear 153 162 154 163 $cloud->clear; 164 my $removed = $cloud->clear; 165 166 This method removes all data. 167 168 A return value is hash reference including a word and the number. 169 The form of this return value is same as C<$cloud-E<gt>data>. 170 171 Please see L<"data"> for more information. 155 172 156 173 =head2 increment
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)