Sha256: 262d3ab6d7888389e4ac101a26e13e2cc0a853c1aa50a07ac07ab10d3cf9d938

Contents?: true

Size: 644 Bytes

Versions: 1

Compression:

Stored size: 644 Bytes

Contents

require 'squib/args/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

1 entries across 1 versions & 1 rubygems

Version Path
squib-0.9.0 lib/squib/args/import.rb