add Ruby class method snippet