Sha256: e6412249350a865bb45e029baf723860f94c7d0b1fb3d9a216da177acf8552f3
Contents?: true
Size: 327 Bytes
Versions: 10
Compression:
Stored size: 327 Bytes
Contents
module Rooftop class Author def initialize(args) args.each do |k,v| instance_variable_set("@#{k}", v) self.class.send(:attr_accessor, k) end end def id self.instance_variable_get(:"@ID") end def ==(other) other.respond_to?(:id) && other.id == id end end end
Version data entries
10 entries across 10 versions & 1 rubygems