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.



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_pathString (readonly)

Returns:

  • (String)


43
44
45
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 43

def absolute_path
  @absolute_path
end

#nameString (readonly)

Returns:

  • (String)


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