Module: CustomActiveRecordObserver::NotNil

Defined in:
lib/custom_active_record_observer/not_nil.rb

Overview

A module to represent any of values that are not equal to nil

Class Method Summary collapse

Class Method Details

.===(other) ⇒ Boolean



7
8
9
# File 'lib/custom_active_record_observer/not_nil.rb', line 7

def self.===(other)
  super || !other.nil?
end