没有合适的资源?快使用搜索试试~ 我知道了~
attach_function
共15个文件
rb:5个
md:2个
gemfile:1个
需积分: 11 0 下载量 100 浏览量
2021-06-19
02:29:53
上传
评论
收藏 16KB ZIP 举报
温馨提示
附加功能 AttachFunction 定义了新方法,这些方法是目标函数的部分应用,其中目标函数的第一个参数固定为 self。 新定义的方法的名称将是目标函数的基本名称(模块路径被剥离)或用户指定的名称。 相对指定的参数函数的接收者将是当前模块,如果给出了用户指定的名称并且用户指定的名称与目标函数的基名不同,或者封闭模块,如果没有用户指定的名称提供或用户指定的名称与参数的基本名称相同。 用法示例: require 'attach_function' module Math #This will contain the method versions of the functions defined in the Math module module MethodVersions #Get the attach_function macro extend A
资源推荐
资源详情
资源评论
收起资源包目录
attach_function-master.zip (15个子文件)
attach_function-master
.gitignore 118B
Guardfile 2KB
VERSIONING.md 1KB
.rspec 31B
.travis.yml 30B
examples
enclosing_scope.rb 368B
spec
spec_helper.rb 139B
attach_function_spec.rb 3KB
README.md 4KB
lib
attach_function
version.rb 72B
attach_function.rb 3KB
attach_function-0.1.2.gem 10KB
attach_function.gemspec 1KB
Gemfile 39B
Rakefile 117B
共 15 条
- 1
资源评论
dilikong
- 粉丝: 24
- 资源: 4597
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功