Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    Class::NiceApi 0.01.02

    Download button

    No screenshots available
    Downloads: 365  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Murat Uenalan | More programs
    Perl Artistic License / FREE
    June 20th, 2007, 08:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Class::NiceApi description

    Class::NiceApi is a Perl module that translates your methodNames to my method_names.

    Class::NiceApi is a Perl module that translates your methodNames to my method_names.

    SYNOPSIS

    use Class::NiceApi;

    my $acl = Class::NiceApi->new( victim => Decision::ACL->new(), style => 'custom', table => { run_acl => 'RunACL' } );

    Perl method names should be written lowercased and multiple words should be connected via '_'. This is_good_coding_convention. Unfortunately this recommendation is ignored by many CPAN authors. Class::NiceApi helps pernickety programmers as me. It translates method names from isThisPerl to is_this_perl back and forth. Well, it so flexible it can translate allmost anything to anything. So it would translate perl_method_name to java programmers favorite perlMethodName.

    METHODS

    new()

    Takes following parameters (which are also available as methods).

    victim

    An instance of a class where the method names subjected to translation.

    style

    A style is just a shortcut for the translation table. Following styles are currently supported: custom, with_underscore and to_lc.

    [Note] They are implemented via a 'translating' callback in $Class::NiceApi::callbacks. It filters the source method name and returns the destination name.

    table

    Here you can list explicit translations of method names, which are exceptions to the custom style filter.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    translate methodNames | translate method_names | Perl module | Class::NiceApi | translate | methodNames

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM