Sha256: 2c02c6e193d02b7668d271785b2aab0179dc02ede73160fbae5b835c549e08c2
Contents?: true
Size: 316 Bytes
Versions: 41
Compression:
Stored size: 316 Bytes
Contents
class Post < OpenStruct def self.create!(attributes) create(attributes) end def self.create(attributes) @all ||= [] post = new(attributes) @all << post attributes['all'] = @all.index(post) end def self.all @all ||= [] @all end def self.delete_all @all = [] end end
Version data entries
41 entries across 24 versions & 1 rubygems