class Polites::Span::Link
Attributes
title[R]
url[R]
Public Class Methods
new(children = [], url:, title: nil)
click to toggle source
Calls superclass method
Polites::Node::new
# File lib/polites/span/link.rb, line 9 def initialize(children = [], url:, title: nil) super(children) @url = url @title = title end
Public Instance Methods
eql?(other)
click to toggle source
Calls superclass method
Polites::Node#eql?
# File lib/polites/span/link.rb, line 15 def eql?(other) super && url == other.url && title == other.title end