Method: Flows::Result#==

Defined in:
lib/flows/result.rb

#==(other) ⇒ Boolean

Results are equal if have same type and data.

Metadata is ignored in comparison.

Returns:

  • (Boolean)

Since:

  • 0.4.0



186
187
188
189
190
# File 'lib/flows/result.rb', line 186

def ==(other)
  return false if self.class != other.class

  (status == other.status) && (data == other.send(:data))
end