Class: Epuber::Compiler::FileFinders::Imaginary::FileEntry
- Inherits:
-
Object
- Object
- Epuber::Compiler::FileFinders::Imaginary::FileEntry
- Defined in:
- lib/epuber/compiler/file_finders/imaginary.rb
Instance Attribute Summary collapse
- #absolute_path ⇒ String readonly
- #name ⇒ String readonly
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, absolute_path) ⇒ FileEntry
constructor
A new instance of FileEntry.
Constructor Details
#initialize(name, absolute_path) ⇒ FileEntry
Returns a new instance of FileEntry.
45 46 47 48 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 45 def initialize(name, absolute_path) @name = name @absolute_path = absolute_path end |
Instance Attribute Details
#absolute_path ⇒ String (readonly)
43 44 45 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 43 def absolute_path @absolute_path end |
#name ⇒ String (readonly)
39 40 41 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 39 def name @name end |
Instance Method Details
#==(other) ⇒ Object
50 51 52 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 50 def ==(other) name == (other.is_a?(FileEntry) ? other.name : other.to_s) end |