Class: HMap::TargetVFSEntry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(build_dir, file) ⇒ TargetVFSEntry

Returns a new instance of TargetVFSEntry.



9
10
11
12
# File 'lib/hmap/xc/target/target_vfs.rb', line 9

def initialize(build_dir, file)
  @real_path = file
  @virtual_path = File.join(build_dir, File.basename(file))
end

Instance Attribute Details

#real_pathObject (readonly)

Returns the value of attribute real_path.



7
8
9
# File 'lib/hmap/xc/target/target_vfs.rb', line 7

def real_path
  @real_path
end

#virtual_pathObject (readonly)

Returns the value of attribute virtual_path.



7
8
9
# File 'lib/hmap/xc/target/target_vfs.rb', line 7

def virtual_path
  @virtual_path
end

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/hmap/xc/target/target_vfs.rb', line 14

def eql?(other)
  other.real_path == real_path && other.virtual_path == virtual_path
end