1

if I rewrite method_missing like the following and call a shell command.

def method_missing(method, *args)
  puts "method_missing called: #{method}"
  super
end
`ls`

it will puts:

method missing called! to_ary

why? And how to avoid calling method_missing when I execute a command?

crazyjin
  • 56
  • 7

0 Answers0