1 2 3 4 5 6 7 8 9 10 11 12 |
#!/usr/local/bin/ruby -w # # # def call_each animals = %w{ant bee cat dog elk} for animal in animals yield animal end end call_each {|animal_block| puts animal_block} |
Latest posts by Zhiming Zhang (see all)
- ReplicationController and ReplicaSet in Kubernetes - 12月 20, 2021
- public key fingerprint - 5月 27, 2021
- Index brackets must contain either a literal number or a literal string.terraform taint - 5月 20, 2021