-
-
Save compwron/18d2a51a630dac47afac to your computer and use it in GitHub Desktop.
list constant values
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ConstantsHelper | |
def list_constant_values | |
constants(false).map{|f| const_get(f)} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment