Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • rdoc/markup/simple_markup/inline.rb

Parent

Methods

Files

Class/Module Index [+]

Quicksearch

SM::Special

Hold details of a special sequence

Attributes

text[RW]
type[R]

Public Class Methods

new(type, text) click to toggle source
 
               # File rdoc/markup/simple_markup/inline.rb, line 75
def initialize(type, text)
  @type, @text = type, text
end
            

Public Instance Methods

==(o) click to toggle source
 
               # File rdoc/markup/simple_markup/inline.rb, line 79
def ==(o)
  self.text == o.text && self.type == o.type
end
            
to_s() click to toggle source
 
               # File rdoc/markup/simple_markup/inline.rb, line 83
def to_s
  "Special: type=#{type}, text=#{text.dump}"
end