class Array
Modifies Array
Public Instance Methods
==(other)
click to toggle source
Equal operator modified to deal with {PlainText::Part}
@param other [Object]
# File lib/plain_text/part.rb, line 1051 def ==(other) return false if !other.class.method_defined?(:to_ary) %i(paras boundaries).each do |ea_m| # %i(...) defined in Ruby 2.0 and later return equal_original_b4_part?(other) if !other.class.method_defined?(ea_m) return false if !self.class.method_defined?(ea_m) || (self.public_send(ea_m) != other.public_send(ea_m)) # public_send() defined in Ruby 2.0 (1.9?) and later end true end