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 ⇒ Object
readonly
Returns the value of attribute absolute_path.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
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.
39 40 41 42 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 39 def initialize(name, absolute_path) @name = name @absolute_path = absolute_path end |
Instance Attribute Details
#absolute_path ⇒ Object (readonly)
Returns the value of attribute absolute_path.
37 38 39 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 37 def absolute_path @absolute_path end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
35 36 37 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 35 def name @name end |
Instance Method Details
#==(other) ⇒ Object
44 45 46 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 44 def ==(other) other.is_a?(FileEntry) ? name == other.name : name == other.to_s end |