lib/tapioca/helpers/test/dsl_compiler.rb in tapioca-0.9.4 vs lib/tapioca/helpers/test/dsl_compiler.rb in tapioca-0.10.0
- old
+ new
@@ -77,10 +77,10 @@
[compiler_class, *other_compiler_classes]
end
sig { returns(T::Array[String]) }
def gathered_constants
- compiler_class.processable_constants.map(&:name).compact.sort
+ compiler_class.processable_constants.filter_map(&:name).sort
end
sig { params(constant_name: T.any(Symbol, String)).returns(String) }
def rbi_for(constant_name)
# Make sure this is a constant that we can handle.