spatel
0
Q:

ruby constants

my_variable = 18 # simple ruby variable

MY_CONSTANT = 25 # ruby constant
0
class Foo
  CONSTANT_NAME = ["a", "b", "c"]
end

Foo::CONSTANT_NAME
# => ["a", "b", "c"]
-1

Tags

New to Communities?

Join the community