![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ruby
生命的脚步从不停歇
1
展开
-
ruby ARGV ARGF 输出文件内容
使用ARGV ARGF 打印文件p1.txt , p2.txt , p3.txt 的内容: 命令:root@kali:~/Desktop# ruby /usr/share/metasploit-framework/testys.rb p1.txt p2.txt p3.txt testys.rb内容如下,区别是否有gets: ARGV.each {|i| print while gets}...原创 2019-03-09 11:21:52 · 289 阅读 · 0 评论 -
细说Ruby里的public、protected和private
首先来看这段代码: class Test def method_public puts"In method_public" end def method_protected puts "In method_protected" end def method_private puts "In method_...转载 2019-03-09 18:47:15 · 536 阅读 · 0 评论