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