Your IP : 18.118.166.45


Current Path : /opt/alt/ruby19/lib64/ruby/1.9.1/rdoc/markup/
Upload File :
Current File : //opt/alt/ruby19/lib64/ruby/1.9.1/rdoc/markup/indented_paragraph.rb

##
# An Indented Paragraph of text

class RDoc::Markup::IndentedParagraph < RDoc::Markup::Raw

  ##
  # The indent in number of spaces

  attr_reader :indent

  ##
  # Creates a new IndentedParagraph containing +parts+ indented with +indent+
  # spaces

  def initialize indent, *parts
    @indent = indent

    super(*parts)
  end

  def == other # :nodoc:
    super and indent == other.indent
  end

  ##
  # Calls #accept_indented_paragraph on +visitor+

  def accept visitor
    visitor.accept_indented_paragraph self
  end

end


?>