Replace specialized Cache accessors with general #[]/#[]= methods.
This commit is contained in:
1 parent
68118c2707
commit
ab2fa1662f
5 files changed
+21
-24
No files matched your search
+10
-13
@@ -70,6 +70,16 @@ module Rscons
|
||||
initialize!
|
||||
end
|
||||
|
||||
# Access cache value.
|
||||
def [](key)
|
||||
@cache[key]
|
||||
end
|
||||
|
||||
# Assign cache value.
|
||||
def []=(key, value)
|
||||
@cache[key] = value
|
||||
end
|
||||
|
||||
# Remove the cache file.
|
||||
#
|
||||
# @return [void]
|
||||
@@ -85,19 +95,6 @@ module Rscons
|
||||
@lookup_checksums = {}
|
||||
end
|
||||
|
||||
# Access configuration data.
|
||||
def configuration_data
|
||||
@cache["configuration_data"]
|
||||
end
|
||||
|
||||
# Set configuration data.
|
||||
#
|
||||
# @param value [Hash]
|
||||
# Configuration data.
|
||||
def configuration_data=(value)
|
||||
@cache["configuration_data"] = value
|
||||
end
|
||||
|
||||
# Write the cache to disk.
|
||||
#
|
||||
# @return [void]
|
||||
|
||||
Reference in new issue
Block a user