method

be_a_kind_of

Importance_1
be_a_kind_of(expected) public

Passes if actual.kind_of?(expected)

Examples

  5.should be_kind_of(Fixnum)
  5.should be_kind_of(Numeric)
  5.should_not be_kind_of(Float)
Show source
Register or log in to add new notes.