Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Stringify Pod::Block::Declarator to its content
  • Loading branch information
Tadeusz Sośnierz committed Oct 3, 2011
1 parent eb8d302 commit 356fe7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/core/Pod.pm
Expand Up @@ -22,6 +22,9 @@ my package Pod {
method set_docee($d) {
$!WHEREFORE = $d
}
method Stringy {
~@.content
}
}

class Block::Table is Block {
Expand Down
3 changes: 2 additions & 1 deletion t/pod/why.t
@@ -1,11 +1,12 @@
use Test;
plan 12;
plan 13;

#= simple case
class Simple {
}

is Simple.WHY.content, 'simple case';
is ~Simple.WHY, 'simple case', 'stringifies correctly';

#= giraffe
class Outer {
Expand Down

0 comments on commit 356fe7a

Please sign in to comment.