Class: Fig::NotYetParsedPackage

Inherits:
Object
  • Object
show all
Defined in:
lib/fig/not_yet_parsed_package.rb

Overview

Metadata about a package definition file that hasn’t been read yet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptorObject

Returns the value of attribute descriptor.



7
8
9
# File 'lib/fig/not_yet_parsed_package.rb', line 7

def descriptor
  @descriptor
end

#include_file_base_directoryObject

Returns the value of attribute include_file_base_directory.



9
10
11
# File 'lib/fig/not_yet_parsed_package.rb', line 9

def include_file_base_directory
  @include_file_base_directory
end

#source_descriptionObject

Returns the value of attribute source_description.



10
11
12
# File 'lib/fig/not_yet_parsed_package.rb', line 10

def source_description
  @source_description
end

#unparsed_textObject

Returns the value of attribute unparsed_text.



11
12
13
# File 'lib/fig/not_yet_parsed_package.rb', line 11

def unparsed_text
  @unparsed_text
end

#working_directoryObject

Returns the value of attribute working_directory.



8
9
10
# File 'lib/fig/not_yet_parsed_package.rb', line 8

def working_directory
  @working_directory
end

Instance Method Details

#extended_source_descriptionObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/fig/not_yet_parsed_package.rb', line 13

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