Permalink
Browse files

The instance variable is static, so there's no need to use instance_v…

…ariable_get

Hat-tip: @dkubb
  • Loading branch information...
1 parent 918aca1 commit eade817dde6c8dcd323332054efe2725eed32fb6 @sferik committed Oct 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/twitter/base.rb
View
2 lib/twitter/base.rb
@@ -7,7 +7,7 @@ def self.lazy_attr_reader(*attrs)
attrs.each do |attribute|
class_eval do
define_method attribute do
- instance_variable_get("@attrs")[attribute.to_s]
+ @attrs[attribute.to_s]
end
end
end

0 comments on commit eade817

Please sign in to comment.