Code Editor
Learn
Methods, Blocks, & Sorting

Practice Makes Perfect

You won't become a Master Method Maker 'til you make a mess of methods. (Say that three times fast.)

def by_five?(n) return n % 5 == 0 end

The example above is just a reminder on how to define a method.

Report a Bug
If you see a bug or any other issue with this page, please report it here.