class Polites::Span::Image

Attributes

children[R]
description[R]
filename[R]
height[R]
image[R]
title[R]
width[R]

Public Class Methods

new(children, image:, filename: nil, title: nil, description: nil, width: nil, height: nil) click to toggle source
Calls superclass method Polites::Node::new
# File lib/polites/span/image.rb, line 9
def initialize(children, image:, filename: nil, title: nil, description: nil, width: nil, height: nil)
  super(children)
  @image = image
  @filename = filename
  @title = title
  @description = description
  @width = width
  @height = height
end

Public Instance Methods

eql?(other) click to toggle source
Calls superclass method Polites::Node#eql?
# File lib/polites/span/image.rb, line 19
def eql?(other)
  super &&
    image == other.image &&
    filename == other.filename &&
    title == other.title &&
    description == other.description &&
    width == other.width &&
    height == other.height
end