View difference between Paste ID: YqXBcLnP and PJ1xZkfP
SHOW: | | - or go back to the newest paste.
1
class A
2
3-
	attr_accessor :storage
3+
	def self.storage
4
		@storage
5
	end
6
7
	def storage
8
		self.class.storage
9
	end
10
11
	def self.store(del)
12
		( @storage ||= [] ) << del
13
	end
14
15
	store :a
16
17
end
18
19
p A.new.storage