Class: Object

Inherits:
BasicObject
Includes:
Be::Kernel
Defined in:
lib/be.rb,
lib/be/should.rb,
lib/be/core_ext.rb

Instance Method Summary collapse

Methods included from Be::Kernel

#be, #have

Instance Method Details

#identical?(other) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/be/core_ext.rb', line 3

def identical?(other)
  object_id == other.object_id
end

#should(assay) ⇒ Object



7
8
9
# File 'lib/be/should.rb', line 7

def should(assay)
  assay.to_assertor.assert!(self)
end

#should_not(assay) ⇒ Object



12
13
14
# File 'lib/be/should.rb', line 12

def should_not(assay)
  assay.to_assertor.refute!(self)
end