Sha256: 424b39d168ca5ca1ffce69bf35a4daad4c8e0dbe42b68491a024a7b088d128e7

Contents?: true

Size: 289 Bytes

Versions: 12

Compression:

Stored size: 289 Bytes

Contents

module Hanzo
  class Base
    attr_accessor :options

    def initialize(args)
      @args = args
      @options = OptionParser.new

      initialize_variables
      initialize_cli
    end

    def extract_argument(index)
      (@args[index] =~ /-/) ? nil : @args[index]
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hanzo-0.4.3 lib/hanzo/base.rb
hanzo-0.4.2 lib/hanzo/base.rb
hanzo-0.4.1 lib/hanzo/base.rb
hanzo-0.4 lib/hanzo/base.rb
hanzo-0.3.1 lib/hanzo/base.rb
hanzo-0.3 lib/hanzo/base.rb
hanzo-0.2.3 lib/hanzo/base.rb
hanzo-0.2.2 lib/hanzo/base.rb
hanzo-0.2.1 lib/hanzo/base.rb
hanzo-0.2 lib/hanzo/base.rb
hanzo-0.1.2 lib/hanzo/base.rb
hanzo-0.1.0 lib/hanzo/base.rb