instance method
==
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
==(o)
Compares two Text::Format objects. All settings of the objects are compared except #hyphenator. Generated results (e.g., #split_words) are not compared, either.
Parameters
-
oreq
Source
# File actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb, line 135
def ==(o)
(@text == o.text) &&
(@columns == o.columns) &&
(@left_margin == o.left_margin) &&
(@right_margin == o.right_margin) &&
(@hard_margins == o.hard_margins) &&
(@split_rules == o.split_rules) &&
(@first_indent == o.first_indent) &&
(@body_indent == o.body_indent) &&
(@tag_text == o.tag_text) &&
(@tabstop == o.tabstop) &&
(@format_style == o.format_style) &&
(@extra_space == o.extra_space) &&
(@tag_paragraph == o.tag_paragraph) &&
(@nobreak == o.nobreak) &&
(@abbreviations == o.abbreviations) &&
(@nobreak_regex == o.nobreak_regex)
end
Defined in actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb line 135
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Text::Format