Class: Rubycom::ArgParse::ArgTransform
- Inherits:
-
Parslet::Transform
- Object
- Parslet::Transform
- Rubycom::ArgParse::ArgTransform
- Defined in:
- lib/rubycom/arg_parse.rb
Overview
Parslet transformer intended for use with ArgParser. Uses functions in Rubycom::ArgParse to clean up a structure identified by the parser and convert values to basic types.
Example:
ArgTransform.new.apply(ArgParser.new.parse("-test_arg = test"))
=> {:opt=>{"test_arg"=>"test"}}