lib/parlour/rbs_generator/arbitrary.rb in parlour-6.0.1 vs lib/parlour/rbs_generator/arbitrary.rb in parlour-7.0.0
- old
+ new
@@ -78,15 +78,12 @@
# @return [void]
def merge_into_self(others)
raise 'arbitrary code is never mergeable'
end
- sig { override.returns(String) }
- # Returns a human-readable brief string description of this code.
- #
- # @return [String]
- def describe
- "Arbitrary code (#{code})"
+ sig { override.returns(T::Array[T.any(Symbol, T::Hash[Symbol, String])]) }
+ def describe_attrs
+ [:code]
end
end
end
end