lib/parlour/rbs_generator/constant.rb in parlour-6.0.1 vs lib/parlour/rbs_generator/constant.rb in parlour-7.0.0

- old
+ new

@@ -81,15 +81,12 @@ # @return [void] def merge_into_self(others) # We don't need to change anything! We only merge identical constants end - sig { override.returns(String) } - # Returns a human-readable brief string description of this code. - # - # @return [String] - def describe - "Constant (#{name} = #{type})" + sig { override.returns(T::Array[T.any(Symbol, T::Hash[Symbol, String])]) } + def describe_attrs + [{type: type}] # avoid quotes end end end end