make all instances attr read writers
unfortunately the writers have to have self.var = otherwise it is just a local var Also need to make the type explicit for all Protocol included memory_length on the class for now
This commit is contained in:
@ -8,12 +8,11 @@
|
||||
module Parfait
|
||||
class CacheEntry < Object
|
||||
|
||||
attr :cached_type
|
||||
attr :cached_method
|
||||
attr :type, :cached_type, :cached_method
|
||||
|
||||
def initialize(type , method)
|
||||
@cached_type = type
|
||||
@cached_method = method
|
||||
self.cached_type = type
|
||||
self.cached_method = method
|
||||
end
|
||||
|
||||
def to_s
|
||||
|
Reference in New Issue
Block a user