Class RDoc::Markup::Special
In: markup/inline.rb
Parent: Object

Hold details of a special sequence

Methods

==   inspect   new   to_s  

Public Class methods

[Source]

    # File markup/inline.rb, line 80
80:     def initialize(type, text)
81:       @type, @text = type, text
82:     end

Public Instance methods

[Source]

    # File markup/inline.rb, line 84
84:     def ==(o)
85:       self.text == o.text && self.type == o.type
86:     end

[Source]

    # File markup/inline.rb, line 88
88:     def inspect
89:       "#<RDoc::Markup::Special:0x%x @type=%p, name=%p @text=%p>" % [
90:         object_id, @type, RDoc::Markup::Attribute.as_string(type), text.dump]
91:     end

[Source]

    # File markup/inline.rb, line 93
93:     def to_s
94:       "Special: type=#{type}, name=#{RDoc::Markup::Attribute.as_string type}, text=#{text.dump}"
95:     end

[Validate]