没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
国防部 受haskell启发的Ruby模式匹配实现。 如果您想了解defp的内部工作原理,请。 安装 将此行添加到您的应用程序的Gemfile中: gem 'defp' 然后执行: $ bundle 或将其自己安装为: $ gem install defp 用法 class Example extend Defp # With normal params def normal_params ( value1 , value2 ) defp ( 'hello' , _ ) == 'foo' defp ( _ , 'hello' ) = = -> do 'bar' end 'baz' end # With keyword arguments def self
资源推荐
资源详情
资源评论
收起资源包目录
defp-master.zip (10个子文件)
defp-master
.travis.yml 332B
Rakefile 146B
test
test_defp.rb 2KB
Gemfile 89B
defp.gemspec 892B
.gitignore 135B
lib
defp
version.rb 36B
defp.rb 972B
README.md 1KB
LICENSE.txt 1KB
共 10 条
- 1
资源评论
看起来很年长的一条鱼
- 粉丝: 34
- 资源: 4612
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功