Sha256: 1cd7f688a74414a7f058514c9706bf1334afb65bd200b1b68f1e29636968d446
Contents?: true
Size: 545 Bytes
Versions: 32
Compression:
Stored size: 545 Bytes
Contents
module Steep module Drivers class TracePrinter attr_reader :io def initialize(io) @io = io end def print(trace, level: 0) trace.each.with_index do |t, i| prefix = " " * (i + level) case t[0] when :type io.puts "#{prefix}#{t[1]} <: #{t[2]}" when :method io.puts "#{prefix}(#{t[3]}) #{t[1]} <: #{t[2]}" when :method_type io.puts "#{prefix}#{t[1]} <: #{t[2]}" end end end end end end
Version data entries
32 entries across 32 versions & 1 rubygems