Class SM::Special
In: markup/simple_markup/inline.rb
Parent: Object

Hold details of a special sequence

Methods

==   new   to_s  

Attributes

text  [RW] 
type  [R] 

Public Class methods

[Source]

    # File markup/simple_markup/inline.rb, line 75
75:     def initialize(type, text)
76:       @type, @text = type, text
77:     end

Public Instance methods

[Source]

    # File markup/simple_markup/inline.rb, line 79
79:     def ==(o)
80:       self.text == o.text && self.type == o.type
81:     end

[Source]

    # File markup/simple_markup/inline.rb, line 83
83:     def to_s
84:       "Special: type=#{type}, text=#{text.dump}"
85:     end

[Validate]