Sha256: eb2990a017059b7bd2b976d9e88ff5eb8497b64df204f81e6511fe3421487c90

Contents?: true

Size: 305 Bytes

Versions: 4

Compression:

Stored size: 305 Bytes

Contents

module Hanzo
  class Base
    # Accessors
    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

4 entries across 4 versions & 1 rubygems

Version Path
hanzo-0.6 lib/hanzo/base.rb
hanzo-0.5 lib/hanzo/base.rb
hanzo-0.4.5 lib/hanzo/base.rb
hanzo-0.4.4 lib/hanzo/base.rb