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
- #entries ⇒ Hash<String, String | DirEntry>
-
#name ⇒ Object
readonly
Returns the value of attribute name.
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.
19 20 21 22 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 19 def initialize(name) @name = name @entries = {} end |
Instance Attribute Details
#entries ⇒ Hash<String, String | DirEntry>
15 16 17 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 15 def entries @entries end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
17 18 19 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 17 def name @name end |
Instance Method Details
#==(other) ⇒ Object
32 33 34 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 32 def ==(other) name == other.name && entries == other.entries end |
#[](key) ⇒ Object
24 25 26 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 24 def [](key) @entries[key] end |
#[]=(key, value) ⇒ Object
28 29 30 |
# File 'lib/epuber/compiler/file_finders/imaginary.rb', line 28 def []=(key, value) @entries[key] = value end |