Module: Cl::Cast

Included in:
Arg, Opt
Defined in:
lib/cl/cast.rb

Defined Under Namespace

Classes: Cast

Instance Method Summary collapse

Instance Method Details

#cast(value) ⇒ Object


51
52
53
# File 'lib/cl/cast.rb', line 51

def cast(value)
  type ? Cast.new(type, value, separator: separator).apply : value
end