Sha256: c46cadcc110e7df1d42608f8a7efe1d2fbea9aea11b505d0f861e3daff9d486c
Contents?: true
Size: 466 Bytes
Versions: 16
Compression:
Stored size: 466 Bytes
Contents
module Steep module Interface class IvarChain attr_reader :type attr_reader :parent def initialize(type:, parent: nil) @type = type @parent = parent end def ==(other) other.is_a?(IvarChain) && type == type && parent == parent end def subst(s) self.class.new( type: type.subst(s), parent: parent&.subst(s) ) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems