Method Acting

Submitted By:
david

Difficulty:
Easy

Tags:
methods, metaprogramming

Instructions:
Write code that will return the name of a method.

Code:
def dogs
  ___
end

def cats
  ___
end

def chunky_bacon
  ___
end

assert_equal dogs, :dogs
assert_equal cats, :cats
assert_equal chunky_bacon, :chunky_bacon

Your Solution

Ruby 1.9.3

Back to Problems