Class: Mittsu::HashObject
- Inherits:
-
Object
- Object
- Mittsu::HashObject
show all
- Defined in:
- lib/mittsu/core/hash_object.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of HashObject.
3
4
5
|
# File 'lib/mittsu/core/hash_object.rb', line 3
def initialize
@_hash = {}
end
|
Instance Method Details
#[](key) ⇒ Object
7
8
9
|
# File 'lib/mittsu/core/hash_object.rb', line 7
def [](key)
@_hash[key]
end
|
#[]=(key, value) ⇒ Object
11
12
13
|
# File 'lib/mittsu/core/hash_object.rb', line 11
def []=(key, value)
@_hash[key] = value
end
|
#delete(key) ⇒ Object
15
16
17
|
# File 'lib/mittsu/core/hash_object.rb', line 15
def delete(key)
@_hash.delete(key)
end
|