Sha256: ff416dcbca46f9573668c4e77b52daf755112e4030b411cb6787f4aeeafc3644
Contents?: true
Size: 1.37 KB
Versions: 4
Compression:
Stored size: 1.37 KB
Contents
# THIS IS GENERATED CODE from `$ rake sig` class Orthoses::CallTracer @captures: untyped @target_tp: untyped def initialize: () -> void def trace: (Method | UnboundMethod) ?{ () -> untyped } -> untyped attr_accessor captures: Array[Capture] end module Orthoses::CallTracer::Capturable def build_capture: (untyped tp) -> untyped private def build_method: (untyped tp) -> untyped private def build_argument: (untyped tp) -> untyped end module Orthoses::CallTracer::Capturable::ExtractRestParameters def __extract_rest_parameters__: (*untyped rest, **untyped kw_rest) { (*untyped, **untyped) -> untyped } -> untyped end class Orthoses::CallTracer::Capture < ::Struct[untyped] def method: () -> Method def argument: () -> Hash[Symbol, untyped] end # CallTracer::Lazy is possible to perform a trace # equivalent to CallTracer before method is defined. # scope = CallTracerLazy.new # scope.trace("ActiveRecord::Base#scope") do # require 'active_record/all' # @loader.call # end # scope.captures.each do |capture| # capture.argument[:name] # capture.argument[:body] # capture.argument[:block] # end class Orthoses::CallTracer::Lazy @captures: untyped @lazy_trace_point: untyped def initialize: () -> void def trace: (String name) ?{ () -> untyped } -> untyped attr_reader captures: Array[Orthoses::CallTracer::Capture] end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
orthoses-1.17.0 | sig/orthoses/call_tracer.rbs |
orthoses-1.16.0 | sig/orthoses/call_tracer.rbs |
orthoses-1.15.0 | sig/orthoses/call_tracer.rbs |
orthoses-1.14.0 | sig/orthoses/call_tracer.rbs |