Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/sapphire/Extensions/Object.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
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 |