Class: ConvenientService::Utils::String::Demodulize Private
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::Utils::String::Demodulize
- Defined in:
- lib/convenient_service/utils/string/demodulize.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #string ⇒ Object readonly private
Instance Method Summary collapse
- #call ⇒ String private
- #initialize(string) ⇒ void constructor private
Methods inherited from Support::Command
Constructor Details
#initialize(string) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
31 32 33 |
# File 'lib/convenient_service/utils/string/demodulize.rb', line 31 def initialize(string) @string = string.to_s end |
Instance Attribute Details
#string ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 |
# File 'lib/convenient_service/utils/string/demodulize.rb', line 25 def string @string end |
Instance Method Details
#call ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
47 48 49 50 51 |
# File 'lib/convenient_service/utils/string/demodulize.rb', line 47 def call i = string.rindex("::") i ? string[(i + 2)..] : string end |