instance method
==
Ruby on Rails 8.1.2
Since v6.0.6Signature
==(other)
No documentation comment.
Parameters
-
otherreq
Source
# File actiontext/lib/action_text/content.rb, line 170
def ==(other)
if self.class == other.class
to_html == other.to_html
elsif other.is_a?(self.class)
to_s == other.to_s
end
end
Defined in actiontext/lib/action_text/content.rb line 170
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Content