Convert::Wiki::Node::Line - Represents a horizontal line (aka ruler)


Convert-Wiki documentation Contained in the Convert-Wiki distribution.

Index


Code Index:

NAME

Top

Convert::Wiki::Node::Line - Represents a horizontal line (aka ruler)

SYNOPSIS

Top

	use Convert::Wiki::Node::Line;

	my $hr = Convert::Wiki::Node::Line->new( );

	print $hr->as_wiki();

DESCRIPTION

Top

A Convert::Wiki::Node::Line represents a horizontal line (aka ruler).

EXPORT

Top

None by default.

SEE ALSO

Top

Convert::Wiki::Node.

AUTHOR

Top

Tels http://bloodgate.com

COPYRIGHT AND LICENSE

Top


Convert-Wiki documentation Contained in the Convert-Wiki distribution.

#############################################################################
# (c) by Tels 2004. Part of Convert::Wiki
#
# represents a horizontal line (or ruler)
#############################################################################

package Convert::Wiki::Node::Line;

use 5.006001;
use strict;
use warnings;

use Convert::Wiki::Node;

use vars qw/$VERSION @ISA/;

@ISA = qw/Convert::Wiki::Node/;
$VERSION = '0.03';

#############################################################################

sub _init
  {
  my ($self,$args) = @_;

  $self->SUPER::_init($args);

  $self->{txt} = "----\n\n";

  $self;
  }

sub _remove_me
  {
  # if we are the first node, or a headline follows us, skip
  my $self = shift;

  my $next = $self->next();

  if (!defined $self->prev() || (defined $next && $next->type() =~ /head/))
    {
    return 1;
    }
  0;
  }

1;
__END__