Method: Object#is

Defined in:
lib/fluidity/is.rb

#is(matcher = nil) ⇒ Object

Use ‘is` nomenclature for assertions.

10.is.kind_of?(Integer)


9
10
11
12
13
14
15
# File 'lib/fluidity/is.rb', line 9

def is(matcher=nil)
  if matcher
    matcher === self
  else
    ::Fluidity::Grammer::Is.new(self)
  end
end