In Files

  • rdoc/markup/regexp_handling.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

RDoc::Markup::RegexpHandling

frozen_string_literal: true

Hold details of a regexp handling sequence

Attributes

text[RW]

Regexp handling text

type[R]

Regexp handling type

Public Class Methods

new(type, text) click to toggle source

Creates a new regexp handling sequence of type with text

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

Public Instance Methods

==(o) click to toggle source

Regexp handlings are equal when the have the same text and type

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