Class: HMap::ProductPath

Inherits:
Object
  • Object
show all
Defined in:
lib/hmap/xc/product_helper.rb

Direct Known Subclasses

ProjectProductPath, WorkspaceProductPath

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ ProductPath

Returns a new instance of ProductPath.

Raises:

  • (ArgumentError)


7
8
9
10
# File 'lib/hmap/xc/product_helper.rb', line 7

def initialize(path)
  @path = path
  raise ArgumentError, "#{path}: can not get build directory" if @build_setting.nil?
end

Instance Attribute Details

#build_settingObject (readonly)

Returns the value of attribute build_setting.



5
6
7
# File 'lib/hmap/xc/product_helper.rb', line 5

def build_setting
  @build_setting
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/hmap/xc/product_helper.rb', line 5

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



5
6
7
# File 'lib/hmap/xc/product_helper.rb', line 5

def path
  @path
end

Instance Method Details

#build_rootObject



12
13
14
# File 'lib/hmap/xc/product_helper.rb', line 12

def build_root
  Pathname(build_setting[Constants::BUILD_DIR])
end

#obj_rootObject



16
17
18
# File 'lib/hmap/xc/product_helper.rb', line 16

def obj_root
  Pathname(build_setting[Constants::OBJROOT])
end