Support for the Ruby 2.1 series ended on March 31 2017. See here for details.

In Files

  • rdoc/markup/special.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

RDoc::Markup::Special

Hold details of a special sequence

Attributes

text[RW]

Special text

type[R]

Special type

Public Class Methods

new(type, text) click to toggle source

Creates a new special sequence of type with text

 
               # File rdoc/markup/special.rb, line 19
def initialize(type, text)
  @type, @text = type, text
end
            

Public Instance Methods

==(o) click to toggle source

Specials are equal when the have the same text and type

 
               # File rdoc/markup/special.rb, line 26
def ==(o)
  self.text == o.text && self.type == o.type
end