Sponsored Content
Full Discussion: How do you like your coffee?
The Lounge What is on Your Mind? How do you like your coffee? Post 302357696 by vbe on Wednesday 30th of September 2009 11:48:55 AM
Old 09-30-2009
2 short ristretto in a espresso cup (no room for milk or sugar...)
 

2 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Forum Coffee Shop (Lounge)?

I've noticed that many sites like this one have a forum that is a freewheeling lounge where people can talk about whatever they want without the strict rules of the forums. I've been very hesitant to do this for many reasons (reasons I'd prefer not to go into, thanks!). Anyway... here is a... (1 Reply)
Discussion started by: Neo
1 Replies

2. What is on Your Mind?

Hello World Linux - Morning Server Tasks with Your First Coffee

New "Beginners" Video: Hello World Linux - Morning Server Tasks with Your First Coffee https://www.youtube.com/watch?v=A0X1_at7JP8 (0 Replies)
Discussion started by: Neo
0 Replies
Moose::Meta::Attribute::Native::Trait::Bool(3pm)	User Contributed Perl Documentation	  Moose::Meta::Attribute::Native::Trait::Bool(3pm)

NAME
Moose::Meta::Attribute::Native::Trait::Bool - Helper trait for Bool attributes VERSION
version 2.0603 SYNOPSIS
package Room; use Moose; has 'is_lit' => ( traits => ['Bool'], is => 'rw', isa => 'Bool', default => 0, handles => { illuminate => 'set', darken => 'unset', flip_switch => 'toggle', is_dark => 'not', }, ); my $room = Room->new(); $room->illuminate; # same as $room->is_lit(1); $room->darken; # same as $room->is_lit(0); $room->flip_switch; # same as $room->is_lit(not $room->is_lit); return $room->is_dark; # same as !$room->is_lit DESCRIPTION
This trait provides native delegation methods for boolean values. A boolean is a scalar which can be 1, 0, "", or "undef". DEFAULT TYPE
If you don't provide an "isa" value for your attribute, it will default to "Bool". PROVIDED METHODS
None of these methods accept arguments. o set Sets the value to 1 and returns 1. o unset Set the value to 0 and returns 0. o toggle Toggles the value. If it's true, set to false, and vice versa. Returns the new value. o not Equivalent of 'not $value'. BUGS
See "BUGS" in Moose for details on reporting bugs. AUTHOR
Moose is maintained by the Moose Cabal, along with the help of many contributors. See "CABAL" in Moose and "CONTRIBUTORS" in Moose for details. COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Infinity Interactive, Inc.. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-28 Moose::Meta::Attribute::Native::Trait::Bool(3pm)
All times are GMT -4. The time now is 08:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy