Class: RSS::Rss::Channel::Item::Enclosure

Inherits:
Object
  • Object
show all
Defined in:
lib/parsers/rss.rb

Overview

Add equality onto Enclosures.

Instance Method Summary collapse

Instance Method Details

#eql?(enc) ⇒ Boolean Also known as: ==

Returns:

  • (Boolean)


12
13
14
15
16
# File 'lib/parsers/rss.rb', line 12

def eql?(enc)
  instance_variables.all? do |iv|
    instance_variable_get(iv) == enc.instance_variable_get(iv)
  end
end