mirror of
https://github.com/NohamR/knowledge-kit.git
synced 2026-05-25 12:27:15 +00:00
10 lines
430 B
Markdown
10 lines
430 B
Markdown
|
|
# Ruby
|
|
|
|
> 为了 iOS 工程化开展,自己最近开始了 Ruby 的学习,本篇博文就用来记录 Ruby 的学习心得和体验。
|
|
|
|
- block 最后一行是返回值,不需要指定 return
|
|
- ruby 脚本语言在编写好代码后也想像其他 GPL 语言一样断点可以,需要安装依赖和相应的代码调整
|
|
- `gem install pry`
|
|
- 文件引入 `require 'pry'`
|
|
- 需要 debug 的地方加上 `binding.pry` |