Sha256: f2b9fb70a6614d344d6667afb200a9647aef072a0e7424eea0c1c35fd8826c94
Contents?: true
Size: 458 Bytes
Versions: 4
Compression:
Stored size: 458 Bytes
Contents
# typed: true # frozen_string_literal: true require "ast" module Packwerk # An interface describing some object that can extract a constant name from an AST node module ConstantNameInspector extend T::Sig extend T::Helpers interface! sig do params(node: ::AST::Node, ancestors: T::Array[::AST::Node]) .returns(T.nilable(String)) .abstract end def constant_name_from_node(node, ancestors:); end end end
Version data entries
4 entries across 4 versions & 1 rubygems