Make options an attr_reader
This commit is contained in:
parent
b823e50a54
commit
95e9ced581
@ -138,7 +138,7 @@ class Store
|
||||
|
||||
cattr_accessor :logger, :instance_writer => true
|
||||
|
||||
attr_reader :silence
|
||||
attr_reader :silence, :options
|
||||
alias :silence? :silence
|
||||
|
||||
# Create a new cache. The options will be passed to any write method calls except
|
||||
@ -147,11 +147,6 @@ def initialize (options = nil)
|
||||
@options = options ? options.dup : {}
|
||||
end
|
||||
|
||||
# Get the default options set when the cache was created.
|
||||
def options
|
||||
@options ||= {}
|
||||
end
|
||||
|
||||
# Silence the logger.
|
||||
def silence!
|
||||
@silence = true
|
||||
|
Loading…
Reference in New Issue
Block a user