HIROSE Masaaki > autobox-Numeric-Bytes-0.02 > autobox::Numeric::Bytes

Download:
autobox-Numeric-Bytes-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

autobox::Numeric::Bytes - ActiveSupport equivalent to Perl numeric variables

SYNOPSIS ^

    use autobox::Numeric::Bytes;

    print 2->byte;      # 2
    print 2->kilobyte;  # 2048
    print 3->megabytes; # 3145728
    print 2->exabyte;   # 2305843009213693952

DESCRIPTION ^

autobox::Numeric::Bytes is an autobox module to add Byte-related methods to core integer values by using constant overloading. Inspired by ActiveSupport (Rails) Core extensions to Numeric values.

METHODS ^

bytes, byte
kilobytes, kilobyte
megabytes, megabyte
gigabytes, gigabyte
terabytes, terabyte
petabytes, petabyte
exabytes, exabyte

SEE ALSO ^

http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Numeric/Bytes.html

autobox, bigint

AUTHOR ^

HIROSE Masaaki, <hirose31@gmail.com>

BUGS ^

Please report any bugs or feature requests to bug-autobox-numeric-bytes@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE ^

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

syntax highlighting: