Help for this page

Select Code to Download


  1. or download this
    # bypass constructor, don't care about stuff done in Targeted::Module:
    +:new
    my $sneaky_instantiation = bless {}, q{Targeted::Module};
    ...
    # now call any method, e.g., for a unit test
    isa_ok q{Targeted::Module}, $sneaky_instantiation;
    ok q{expected value} eq $sneaky_instantiation->_internal_method(), q{u
    +nit test for _internal_method};