Flowdock

No documentation

This class has no description. You can help the Ruby on Rails community by adding new notes.

Aliases

  • to_xs
  • fast_xs
Show files where this class is defined (4 files)
Register or log in to add new notes.
January 15, 2009
2 thanks

constantize

@ncancelliere - Instead use constantize which is provided as part of ActiveSupport. It is much easier. So:

mystring.constantize
January 15, 2009 - (v1.2.6 - v2.2.1)
0 thanks

Convert String to Class

this example shows how you can take a string and # make it a class and then send it a method

Kernel.const_get(my_string.capitalize).select_options