class Polites::Tag

A tag is used to define the markup used in Polites documents.

Attributes

name[R]

@return [String]

Public Class Methods

new(name) click to toggle source

@param [String] name

# File lib/polites/tag.rb, line 10
def initialize(name)
  @name = name
end

Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source
# File lib/polites/tag.rb, line 14
def eql?(other)
  other.is_a?(self.class) && name == other.name
end
Also aliased as: ==