Ruby Cheat Sheet

ruby

# 返回一个整数identifier,可以用来判断两个变量是否是同一个对象
a.object_id
python

id(a)
javascript

// no such method
go

rust