![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ruby
晓yun逸
这个作者很懒,什么都没留下…
展开
-
如何初始化一个rails仓库
如何初始化一个rails仓库。原创 2022-08-08 23:14:26 · 134 阅读 · 0 评论 -
ruby 中的 && 和 and,|| 和 or
参考 and和or的优先级低 s = true and false # => false s # => true s = true and true ? 1 : 0 # => 1 s # => true def fun(h = {}) h end fun a: 1 && b = 2 # => {a: 2} fun a: 1 and b = 3 # => {a: 1}原创 2021-09-07 15:29:34 · 423 阅读 · 0 评论