How to begin static typing in Ruby 3?

Does anyone know how to begin using static typing in Ruby 3? I looked here and tried changing the following block in some code, but I’m getting SyntaxError.

Original:

def pretty(seperator)
  ...
end

New:

def pretty: (seperator: String) -> String
  ...
end

Did you look at this site?

1 Like

Thanks for the response!

I think I’m looking for something closer to dry-types as someone on Reddit mentioned.