Class: Cmdlet::Case::Upper
- Inherits:
-
BaseCmdlet
- Object
- BaseCmdlet
- Cmdlet::Case::Upper
- Defined in:
- lib/cmdlet/case/upper.rb
Overview
Upper: Upper case the characters in the given 'string'
Instance Method Summary collapse
-
#call(value) ⇒ String
Value converted to upper case.
Methods inherited from BaseCmdlet
Instance Method Details
#call(value) ⇒ String
Returns value converted to upper case.
11 12 13 14 15 |
# File 'lib/cmdlet/case/upper.rb', line 11 def call(value) return '' if value.nil? value.upcase end |