Better string representation of method call

This commit is contained in:
Michael Miller 2022-03-12 19:26:18 -07:00
parent 20087f1c57
commit 94872a498d
No known key found for this signature in database
GPG key ID: AC78B32D30CE34A2

View file

@ -19,5 +19,10 @@ module Spectator
arguments = Arguments.new(args, kwargs)
new(method, arguments)
end
# Constructs a string containing the method name and arguments.
def to_s(io : IO) : Nil
io << '#' << method << arguments
end
end
end