Class: Cmdlet::Misc::Safe
- Inherits:
-
BaseCmdlet
- Object
- BaseCmdlet
- Cmdlet::Misc::Safe
- Defined in:
- lib/cmdlet/misc/safe.rb
Overview
Safe: pass through the value with <> and single and double quotes left as is
Instance Method Summary collapse
-
#call(value) ⇒ String
The value with <> and single and double quotes left as is.
Methods inherited from BaseCmdlet
Instance Method Details
#call(value) ⇒ String
Returns the value with <> and single and double quotes left as is.
11 12 13 14 |
# File 'lib/cmdlet/misc/safe.rb', line 11 def call(value) value = '' if value.nil? value end |