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

Version Path
steep-0.11.1 lib/steep/interface/ivar_chain.rb
steep-0.11.0 lib/steep/interface/ivar_chain.rb
steep-0.10.0 lib/steep/interface/ivar_chain.rb
steep-0.9.0 lib/steep/interface/ivar_chain.rb
steep-0.8.2 lib/steep/interface/ivar_chain.rb
steep-0.8.1 lib/steep/interface/ivar_chain.rb
steep-0.8.0 lib/steep/interface/ivar_chain.rb
steep-0.7.1 lib/steep/interface/ivar_chain.rb
steep-0.7.0 lib/steep/interface/ivar_chain.rb
steep-0.6.0 lib/steep/interface/ivar_chain.rb
steep-0.5.1 lib/steep/interface/ivar_chain.rb
steep-0.5.0 lib/steep/interface/ivar_chain.rb
steep-0.4.0 lib/steep/interface/ivar_chain.rb
steep-0.3.0 lib/steep/interface/ivar_chain.rb
steep-0.2.0 lib/steep/interface/ivar_chain.rb
steep-0.1.0 lib/steep/interface/ivar_chain.rb