|
| |||||||||||||||
See also: is
_subject and the first argument.
Two objects that are the same or
whose field values are equal are equal.
Pass in same_case and/or same_whitespace of true to have especially liberal
comparison of strings. same_whitespace=false (the default) means that all white space
in the strings are ignored for the purposes of the comparison.
Returns true if _subject and an_object are equal, false otherwise.
Since this method can walk large object trees, it may be expensive.
equal is careful to handle circular data structures without infinite recursion.
Two objects which are the same in all ways except that they each point to themselves
from the same field are "equal" but they are not the identical object.
4.<equal 4.0/>
true"abc".<equal "ABC"/>
true"heythere".<equal "Hey there"/>
![]() | true |
"heythere".<equal "Hey there" same_whitespace=true/>
![]() | false |
© Copyright 2007 Clear Methods, Inc.