RUBY? Ruby? ruby? What's good style?
I know the answer—I just wanted to make sure the question was out there and questioners were aware that there is a correct form.
Also, should I capitalize "gem" as "GEM"?
class TestLanguageName < Test::Unit::TestCase
def test_language_name
assert_correct_language_name StackOverflow.new.describe_language("RuBy")
end
end
class StackOverflow
def describe_language(string)
# Which of the following?
methods = [:upcase, :capitalize, :downcase]
string.send(methods[rand(3)])
end
end