Class: Cmdlet::Case::Lower

Inherits:
BaseCmdlet show all
Defined in:
lib/cmdlet/case/lower.rb

Overview

Lower: Lower case the characters in the given 'string'

Instance Method Summary collapse

Methods inherited from BaseCmdlet

#tokenizer

Instance Method Details

#call(value) ⇒ String

Returns value converted to lower case.

Parameters:

  • value (String|Int)
    • value - to be converted

Returns:

  • (String)

    value converted to lower case



11
12
13
14
15
# File 'lib/cmdlet/case/lower.rb', line 11

def call(value)
  return '' if value.nil?

  value.downcase
end