Update example.rb

Fix method name.