Skip to content

karupanerura/Boolean-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status MetaCPAN Release

NAME

Boolean::Converter - boolean object converter

SYNOPSIS

use Boolean::Converter;

my $converter = Boolean::Converter->new();

my $booelan = $converter->convert_to(JSON::PP::true, 'Data::MessagePack');
# => Data::MessagePack::true

DESCRIPTION

Boolean::Converter is the super great boolean converter for you.

METHODS

Boolean::Converter->new(%args)

Create a new Boolean::Converter object.

ARGUMENTS

  • evaluator

    Evaluates methods map for boolean objects. In default, this module evaluates the object in boolean context.

  • converter

    Converts methods map to boolean object from a scalar value.

my $can_evaluate = $evaluate->can_evaluate($boolean_object)

Checks to evaluate the $boolean_object as a boolean object.

my $boolean = $evaluate->evaluate($boolean_object)

Evaluates the $boolean_object as a boolean object.

my $can_convert_to = $convert->can_convert($to_boolean_class)

Checks to convert to the $to_boolean_object from a boolean.

my $boolean_object = $convert->convert_to($from_boolean_object, $to_boolean_class)

Converts to the $to_boolean_object from $from_boolean_object.

LICENSE

Copyright (C) karupanerura.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

karupanerura karupa@cpan.org

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages