Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more

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