Class: Epuber::Compiler::FileFinders::Imaginary::FileEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/epuber/compiler/file_finders/imaginary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pathObject (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

#nameObject (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