Class: AlterEgo::NotNilMatcher
- Inherits:
-
Object
- Object
- AlterEgo::NotNilMatcher
- Includes:
- Singleton
- Defined in:
- lib/alter_ego.rb
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
70 71 72 |
# File 'lib/alter_ego.rb', line 70 def ==(other) not other.nil? end |
#===(other) ⇒ Object
66 67 68 |
# File 'lib/alter_ego.rb', line 66 def ===(other) self == other end |