Sha256: c1415c99121bd338f2eee39b8e1ea0a2135132faaf0efa67baed8217ad896fc9

Contents?: true

Size: 644 Bytes

Versions: 12

Compression:

Stored size: 644 Bytes

Contents

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
squib-0.14.3.pre1 lib/squib/args/import.rb
squib-0.14.1 lib/squib/args/import.rb
squib-0.14.0 lib/squib/args/import.rb
squib-0.14.beta1 lib/squib/args/import.rb
squib-0.13.4 lib/squib/args/import.rb
squib-0.13.3 lib/squib/args/import.rb
squib-0.13.2 lib/squib/args/import.rb
squib-0.13.1 lib/squib/args/import.rb
squib-0.13.0 lib/squib/args/import.rb
squib-0.12.0 lib/squib/args/import.rb
squib-0.11.0 lib/squib/args/import.rb
squib-0.10.0 lib/squib/args/import.rb