Sha256: 2860416d374ee7c33eef8611b977345db83e06671ba7ab7ec620a7eadc93baed

Contents?: true

Size: 643 Bytes

Versions: 3

Compression:

Stored size: 643 Bytes

Contents

module Fig; end

# Metadata about a package definition file that hasn't been read yet.
class Fig::NotYetParsedPackage
  attr_accessor :descriptor
  attr_accessor :working_directory
  attr_accessor :base_directory
  attr_accessor :source_description
  attr_accessor :unparsed_text

  def extended_source_description()
    if source_description
      if source_description.start_with? working_directory
        return source_description
      end

      extended = source_description
      if working_directory != '.'
        extended << " (#{working_directory})"
      end

      return extended
    end

    return working_directory
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fig-1.4.0 lib/fig/not_yet_parsed_package.rb
fig-1.3.0 lib/fig/not_yet_parsed_package.rb
fig-1.2.0 lib/fig/not_yet_parsed_package.rb