Class: AlterEgo::NotNilMatcher

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/alter_ego.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



67
68
69
# File 'lib/alter_ego.rb', line 67

def ==(other)
  not other.nil?
end

#===(other) ⇒ Object



63
64
65
# File 'lib/alter_ego.rb', line 63

def ===(other)
  self == other
end