From 13fd98917989664b72b5f2a45b97d9169886a692 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Fri, 9 Sep 2011 08:44:12 -0700 Subject: [PATCH] Reference :instance_reader instead of :reader for blocking --- lib/extlib/class.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extlib/class.rb b/lib/extlib/class.rb index ba9387a..7e4eb9b 100644 --- a/lib/extlib/class.rb +++ b/lib/extlib/class.rb @@ -112,7 +112,7 @@ def cattr_accessor(*syms) # moving on). In particular, this makes the return value of this function # less useful. def class_inheritable_reader(*ivars) - instance_reader = ivars.pop[:reader] if ivars.last.is_a?(Hash) + instance_reader = ivars.pop[:instance_reader] if ivars.last.is_a?(Hash) ivars.each do |ivar| self.class_eval <<-RUBY, __FILE__, __LINE__ + 1