3 回答
TA贡献1804条经验 获得超3个赞
h = { :$in => array }h = { :'a.b' => 'c' }h[:s] = 42
h = { $in: array }h = { 'a.b': 'c' } # but this is okay in Ruby2.2+h[s:] = 42
=>
h = { C.new => 11 }h = { 23 => 'pancakes house?' }
h = { C.new: 11 }h = { 23: 'pancakes house?' }
key: value
/\A[a-z_]\w*\z/i
:$in
h[:k]
h = { ... }
h = { 'where is': 'pancakes house?', '$set': { a: 11 } }
TA贡献2011条经验 获得超2个赞
key: "value"
TA贡献1868条经验 获得超4个赞
key: value
- 3 回答
- 0 关注
- 971 浏览
添加回答
举报