class Polites::SimpleTag

A simple tag is a {Tag} defined by a single pattern, such as for headings.

Attributes

pattern[R]

@return [String]

Public Class Methods

new(name, pattern) click to toggle source

@param [String] name @param [String] pattern

Calls superclass method
# File lib/polites/simple_tag.rb, line 13
def initialize(name, pattern)
  super(name)
  @pattern = pattern
end

Public Instance Methods

eql?(other) click to toggle source
Calls superclass method
# File lib/polites/simple_tag.rb, line 18
def eql?(other)
  super && pattern == other.pattern
end