Slide 26
Slide 26 text
Beispiel method_missing
class Demo
def method_missing(m, *args, &block)
puts "There is no method '#{m}' with this args: #{args}"
end
end
Demo.new.anything 1, 5, "Hello”
There is no method 'anything' with this args: [1, 5, "Hello"]
=> nil