Class: HMap::TargetVFSEntry
- Inherits:
-
Object
- Object
- HMap::TargetVFSEntry
- Defined in:
- lib/hmap/xc/target/target_vfs.rb
Instance Attribute Summary collapse
-
#real_path ⇒ Object
readonly
Returns the value of attribute real_path.
-
#virtual_path ⇒ Object
readonly
Returns the value of attribute virtual_path.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean
-
#initialize(build_dir, file) ⇒ TargetVFSEntry
constructor
A new instance of TargetVFSEntry.
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_path ⇒ Object (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_path ⇒ Object (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
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 |