Sha256: 17ad8df4265c7bc600cb3ea7f8dc111afeb8a3a5541e6be207ac7babed1fa552

Contents?: true

Size: 660 Bytes

Versions: 26

Compression:

Stored size: 660 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 :include_file_base_directory
  attr_accessor :source_description
  attr_accessor :unparsed_text

  def extended_source_description()
    if source_description
      if source_description.include? "(#{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

26 entries across 26 versions & 1 rubygems

Version Path
fig-1.23.0 lib/fig/not_yet_parsed_package.rb
fig-1.22.1.beta.1 lib/fig/not_yet_parsed_package.rb
fig-1.22.0 lib/fig/not_yet_parsed_package.rb
fig-1.21.1.beta.2 lib/fig/not_yet_parsed_package.rb
fig-1.21.1.beta.1 lib/fig/not_yet_parsed_package.rb
fig-1.21.0 lib/fig/not_yet_parsed_package.rb
fig-1.20.1.beta.1 lib/fig/not_yet_parsed_package.rb
fig-1.20.0 lib/fig/not_yet_parsed_package.rb
fig-1.19.0 lib/fig/not_yet_parsed_package.rb
fig-1.18.0 lib/fig/not_yet_parsed_package.rb
fig-1.17.0 lib/fig/not_yet_parsed_package.rb
fig-1.16.1.beta.1 lib/fig/not_yet_parsed_package.rb
fig-1.16.0 lib/fig/not_yet_parsed_package.rb
fig-1.15.1.beta.2 lib/fig/not_yet_parsed_package.rb
fig-1.15.1.beta.1 lib/fig/not_yet_parsed_package.rb
fig-1.15.0 lib/fig/not_yet_parsed_package.rb
fig-1.14.0 lib/fig/not_yet_parsed_package.rb
fig-1.13.0 lib/fig/not_yet_parsed_package.rb
fig-1.12.0 lib/fig/not_yet_parsed_package.rb
fig-1.11.0 lib/fig/not_yet_parsed_package.rb