Sha256: 6ab79d295c91b6bd7c346f12aae12e4da4d7415035ed077581fff63298293f7f

Contents?: true

Size: 293 Bytes

Versions: 7

Compression:

Stored size: 293 Bytes

Contents

module Figs
  class Figsfile
    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

7 entries across 7 versions & 1 rubygems

Version Path
figs-3.0.0 lib/figs/figsfile.rb
figs-2.1.1 lib/figs/figsfile.rb
figs-2.0.4 lib/figs/figsfile.rb
figs-2.0.3 lib/figs/figsfile.rb
figs-2.0.2 lib/figs/figsfile.rb
figs-2.0.1 lib/figs/figsfile.rb
figs-2.0.0 lib/figs/figsfile.rb