Skip to content

Commit

Permalink
Remove unnecessary Memoizable::Memory#set method
Browse files Browse the repository at this point in the history
  • Loading branch information
dkubb committed Dec 16, 2013
1 parent 93920a8 commit 2924a9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion lib/memoizable/instance_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def freeze
#
# @api public
def memoize(data)
memoized_method_cache.set(data)
data.each { |name, value| memoized_method_cache[name] = value }
self
end

Expand Down
12 changes: 0 additions & 12 deletions lib/memoizable/memory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,6 @@ def fetch(name)
end
end

# Set the memory
#
# @param [Hash]
#
# @return [Memory]
#
# @api public
def set(data)
data.each { |name, value| self[name] = value }
self
end

# Test if the name has a value in memory
#
# @param [Symbol] name
Expand Down

0 comments on commit 2924a9e

Please sign in to comment.