PageRenderTime 20ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/test/method_missing.rb

http://github.com/feyeleanor/RubyGoLightly
Ruby | 15 lines | 9 code | 3 blank | 3 comment | 0 complexity | f7febd7a484910c36d281a7ae5f36faa MD5 | raw file
 1def method_missing(name, *args)
 2  puts "called method_missing"
 3  puts name
 4end
 5
 6ohaie!
 7# => called method_missing
 8# => ohaie!
 9
10def ohaie!
11  puts "ok"
12end
13
14ohaie!
15# => ok