Class: Vendor::VendorFile::Library::Local

Inherits:
Base
  • Object
show all
Defined in:
lib/vendor/vendor_file/library/local.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#name, #parent, #require, #targets, #version

Instance Method Summary collapse

Methods inherited from Base

#<=>, #==, #build_settings, #dependencies, #description, #download, #files, #frameworks, #per_file_flag, #resources, #version_matches_any?

Constructor Details

#initialize(*args) ⇒ Local

Returns a new instance of Local.



9
10
11
12
# File 'lib/vendor/vendor_file/library/local.rb', line 9

def initialize(*args)
  super(*args)
  @source_tree = :absolute
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



7
8
9
# File 'lib/vendor/vendor_file/library/local.rb', line 7

def path
  @path
end

Instance Method Details

#cache_pathObject



14
15
16
# File 'lib/vendor/vendor_file/library/local.rb', line 14

def cache_path
  expanded_path if path
end

#display_nameObject



18
19
20
# File 'lib/vendor/vendor_file/library/local.rb', line 18

def display_name
  [ name, "(#{expanded_path})" ].join(' ')
end