Use lambda to create a block
#!/usr/bin/env ruby prc = lambda { |name| puts "Hello, " + name } prc. call "myValue!"