Constant Rule

Submitted By:
usa

Difficulty:
Easy

Tags:
constant

Instructions:
How do you access a constant explicitly?

Code:
CONST = rand
class Foo
  CONST = rand(100)
  def foo
    return ___
  end
end

assert_equal Foo.new.foo, CONST

Your Solution

Ruby 1.9.3

Back to Problems