Sha256: 8720f01c9143c22ec0c1200e1ce9cd4653831246fe3efe34eb6e9498f3bd5322

Contents?: true

Size: 307 Bytes

Versions: 1

Compression:

Stored size: 307 Bytes

Contents

module BBLib
  class OptsParser
    class Command < Option
      attr_of [Integer, Range], :position, default: nil, allow_nil: true, arg_at: 0

      def self.type
        [super, :at]
      end

      def extract(index, args)
        args.delete_at(index).to_s
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bblib-2.0.3 lib/bblib/cli/options/command.rb