Sha256: cbf8762a02f1e88c56a96518909cc42a245711a43547a52851040ebf9911e7fb

Contents?: true

Size: 292 Bytes

Versions: 3

Compression:

Stored size: 292 Bytes

Contents

module Figs
  class Figfile
    attr_reader :locations, :method, :repo
    def initialize(*args)
      @repo = args.shift if args.first.downcase.end_with?(".git")
      @locations = args
      @method = @repo.nil? ? "path" : "git"
    end
    
    def [](key)
      send key
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
figs-1.2.3 lib/figs/figfile.rb
figs-1.2.2 lib/figs/figfile.rb
figs-1.2.1 lib/figs/figfile.rb