lib/eigindir/api.rb in eigindir-0.0.2 vs lib/eigindir/api.rb in eigindir-0.0.3
- old
+ new
@@ -52,18 +52,16 @@
private
def __readers
@__readers ||= begin
- default = superclass.send :__readers if superclass.is_a? Eigindir::API
- default || []
+ (superclass.send(:__readers).dup if superclass.is_a? Eigindir::API).to_a
end
end
def __writers
@__writers ||= begin
- default = superclass.send :__writers if superclass.is_a? Eigindir::API
- default || []
+ (superclass.send(:__writers).dup if superclass.is_a? Eigindir::API).to_a
end
end
def __declare_reader(name, coercer)
return attr_reader(name) unless coercer