ruby example check