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