Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Ruby
ruby call class constant
yunbo_gu
Programming language:
Ruby
2021-03-18 21:40:12
0
Q:
ruby call class constant
Han
Code:
Ruby
2021-07-23 04:10:51
class Foo CONSTANT_NAME = ["a", "b", "c"] end Foo::CONSTANT_NAME # => ["a", "b", "c"]
-1
Tags
class
con
call
Related
how to create a method ruby
What does inject in ruby do
ruby constants
ruby extend
creating a class in ruby
class ruby
ruby named parameters
how to inherit active record to a class ruby
puts ruby example
variables in ruby
how to include ,multiple modules in ruby
class inheriting multiple modules in ruby
What does @variable stand for in Ruby
ruby method
ruby on rails set environment variables example
include ruby string
call controller method from button rails
New to Communities?
Join the community