Answers for "ruby constants"

1

ruby constants

my_variable = 18 # simple ruby variable

MY_CONSTANT = 25 # ruby constant
Posted by: Guest on November-29-2020
-1

ruby call class constant

class Foo
  CONSTANT_NAME = ["a", "b", "c"]
end

Foo::CONSTANT_NAME
# => ["a", "b", "c"]
Posted by: Guest on May-26-2020

Python Answers by Framework

Browse Popular Code Answers by Language