Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/react/active_support_support.rb
Instance Method Summary collapse
Instance Method Details
#deconstantize ⇒ Object
10 11 12 |
# File 'lib/react/active_support_support.rb', line 10 def deconstantize self[0, self.rindex("::") || 0] # implementation based on the one in facets' Module#spacename end |
#demodulize ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/react/active_support_support.rb', line 2 def demodulize if i = self.rindex("::") self[(i + 2)..-1] else self end end |