Method: FakeFS::Pathname#==
- Defined in:
- lib/fakefs/pathname.rb
#==(other) ⇒ Object Also known as: ===, eql?
Compare this pathname with other. The comparison is string-based. Be aware that two different paths (foo.txt and ./foo.txt) can refer to the same file.
67 68 69 70 |
# File 'lib/fakefs/pathname.rb', line 67 def ==(other) return false unless other.is_a?(Pathname) other.to_s == @path end |