Permalink
Browse files

alias_method over alias.

Read that it is more predictable.
  • Loading branch information...
1 parent 6db732b commit 8722b5babf1b28056fdebad435559e25d3c02cac @jnunemaker committed Nov 7, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/adapter.rb
View
@@ -43,11 +43,11 @@ def initialize(client, options={})
include Adapter.definitions[name.to_sym]
- alias get read
- alias set write
+ alias_method :get, :read
+ alias_method :set, :write
- alias [] read
- alias []= write
+ alias_method :[], :read
+ alias_method :[]=, :write
alias_method :get_multiple, :read_multiple

0 comments on commit 8722b5b

Please sign in to comment.