mirror of
https://github.com/NohamR/knowledge-kit.git
synced 2026-05-25 04:17:17 +00:00
docs: 批量博文
This commit is contained in:
10
Chapter1 - iOS/1.73.md
Normal file
10
Chapter1 - iOS/1.73.md
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
# Ruby
|
||||
|
||||
> 为了 iOS 工程化开展,自己最近开始了 Ruby 的学习,本篇博文就用来记录 Ruby 的学习心得和体验。
|
||||
|
||||
- block 最后一行是返回值,不需要指定 return
|
||||
- ruby 脚本语言在编写好代码后也想像其他 GPL 语言一样断点可以,需要安装依赖和相应的代码调整
|
||||
- `gem install pry`
|
||||
- 文件引入 `require 'pry'`
|
||||
- 需要 debug 的地方加上 `binding.pry`
|
||||
Reference in New Issue
Block a user