/test/method_missing.rb
http://github.com/feyeleanor/RubyGoLightly · Ruby · 15 lines · 9 code · 3 blank · 3 comment · 0 complexity · f7febd7a484910c36d281a7ae5f36faa MD5 · raw file
- def method_missing(name, *args)
- puts "called method_missing"
- puts name
- end
- ohaie!
- # => called method_missing
- # => ohaie!
- def ohaie!
- puts "ok"
- end
- ohaie!
- # => ok