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.



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

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