Class: Epuber::Compiler::FileFinders::Imaginary::DirEntry
- Inherits:
-
Object
- Object
- Epuber::Compiler::FileFinders::Imaginary::DirEntry
- Defined in:
- lib/epuber/compiler/file_finders/imaginary.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Object
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize(name) ⇒ DirEntry
constructor
A new instance of DirEntry.
Constructor Details
#initialize(name) ⇒ DirEntry
Returns a new instance of DirEntry.
18 19 20 21 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 18 def initialize(name) @name = name @entries = {} end |
Instance Attribute Details
#entries ⇒ Hash<String, String | DirEntry>
12 13 14 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 12 def entries @entries end |
#name ⇒ String (readonly)
16 17 18 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 16 def name @name end |
Instance Method Details
#==(other) ⇒ Object
31 32 33 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 31 def ==(other) name == other.name && entries == other.entries end |
#[](key) ⇒ Object
23 24 25 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 23 def [](key) @entries[key] end |
#[]=(key, value) ⇒ Object
27 28 29 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 27 def []=(key, value) @entries[key] = value end |