Class: Object

Inherits:
BasicObject
Defined in:
lib/sapphire/Extensions/Object.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.observeObject



9
10
11
# File 'lib/sapphire/Extensions/Object.rb', line 9

def self.observe()
  include Sapphire::Pluggable
end

Instance Method Details

#NotBeNil(item, comparator) ⇒ Object



3
4
5
6
7
# File 'lib/sapphire/Extensions/Object.rb', line 3

def NotBeNil(item, comparator)
  evaluation = Evaluation.new(item != nil, true)
  comparator = EqualsComparison.new(evaluation) if comparator == nil
  return comparator.Create(evaluation)
end