Class: Cmdlet::Case::Slash
- Inherits:
-
BaseCmdlet
- Object
- BaseCmdlet
- Cmdlet::Case::Slash
- Defined in:
- lib/cmdlet/case/slash.rb
Overview
Slash: Slash case the characters in the given 'string'
Instance Method Summary collapse
-
#call(value) ⇒ String
Value converted to slash case.
Methods inherited from BaseCmdlet
Instance Method Details
#call(value) ⇒ String
Returns value converted to slash case.
11 12 13 |
# File 'lib/cmdlet/case/slash.rb', line 11 def call(value) tokenizer.parse(value, preserve_case: true, separator: '/') end |