lib/squib/args/import.rb in squib-0.14.2 vs lib/squib/args/import.rb in squib-0.14.3.pre1

- old
+ new

@@ -1,40 +1,40 @@ -require_relative 'arg_loader' - -module Squib - # @api private - module Args - - class Import - include ArgLoader - - def self.parameters - { strip: true, - explode: 'Qty' - } - end - - def self.expanding_parameters - [] # none of them - end - - def self.params_with_units - [] # none of them - end - - def validate_strip(arg) - raise 'Strip must be true or false' unless arg == true || arg == false - arg - end - - def validate_explode(arg) - arg - end - - def strip? - strip - end - - end - - end -end +require_relative 'arg_loader' + +module Squib + # @api private + module Args + + class Import + include ArgLoader + + def self.parameters + { strip: true, + explode: 'Qty' + } + end + + def self.expanding_parameters + [] # none of them + end + + def self.params_with_units + [] # none of them + end + + def validate_strip(arg) + raise 'Strip must be true or false' unless arg == true || arg == false + arg + end + + def validate_explode(arg) + arg + end + + def strip? + strip + end + + end + + end +end