Class: ReeString::Deconstantize
- Inherits:
-
Object
- Object
- ReeString::Deconstantize
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_string/package/ree_string/functions/deconstantize.rb
Instance Method Summary collapse
Instance Method Details
#call(path) ⇒ Object
18 19 20 |
# File 'lib/ree_lib/packages/ree_string/package/ree_string/functions/deconstantize.rb', line 18 def call(path) path.to_s[0, path.rindex("::") || 0] end |