📝

Metaprogramming Traps

2329
0次下载
3次浏览
2026/3/9

- `define_method` — captures closure, be careful with loop variables - `eval` string — security risk, avoid with user input - `class_eval` vs `instance_eval` — class_eval defines instance methods, instance_eval defines singleton - `const_get` with user input — can access any constant, security risk - `method(:name)` — raises NameError if method doesn't exist

广告位 300x250

资源信息

数据来源
bigquery-gharchive
分类
security
创建时间
2026/3/9
更新时间
2026/4/26

评论 (0)

登录后发表评论

加载中...