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