gandalf_to_stuff:Enumerable 的语法糖

时间:2021-07-11 15:55:48
【文件属性】:
文件名称:gandalf_to_stuff:Enumerable 的语法糖
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-11 15:55:48
Ruby gandalf_to_stuff Enumerable 的语法糖 安装 在您的 gemfile 中添加: gem 'gandalf_to_stuff', git: 'git://github.com/robuye/gandalf_to_stuff.git' 在您的应用程序中添加: require 'gandalf_to_stuff' 用法 现在,当拒绝还不够时,您可以致电 Gandalf 来帮助您: [ 'Aragorn' , 'Faramir' , 'Legolas' , 'Baldor' , 'Frodo' ] . gandalf_to_stuff_you_shall_not_pass { | s | s == 'Baldor' } # => ['Aragorn', 'Faramir', 'Legolas', 'Frodo']
【文件预览】:
gandalf_to_stuff-master
----gandalf_to_stuff.gemspec(648B)
----Rakefile(65B)
----.rspec(31B)
----spec()
--------gandalf_to_stuff_spec.rb(312B)
--------spec_helper.rb(27B)
----lib()
--------gandalf_to_stuff.rb(83B)
----README.md(526B)

网友评论