Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/plain_text/part.rb
Overview
Modifies Array
Direct Known Subclasses
Instance Method Summary collapse
-
#==(other) ⇒ Object
Equal operator modified to deal with PlainText::Part.
Instance Method Details
#==(other) ⇒ Object
Equal operator modified to deal with PlainText::Part
1051 1052 1053 1054 1055 1056 1057 1058 |
# 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 |