Method: Class#to_class
- Defined in:
- lib/kyanite/general/classutils.rb
#to_class ⇒ Class
Converts to a class, the reverse of to_classname
Defined for classes Class, Symbol, String. Accepts both CamelCase and down_case.
Tests and examples here.
40 41 42 |
# File 'lib/kyanite/general/classutils.rb', line 40 def to_class self end |