I have tried to partition a string using the partition method from the String module. However, when doing so:
puts "test".partition("s")
I get the following error message:
Line 1:in `partition': wrong number of arguments (1 for 0) (ArgumentError) from t.rb:1
I believe that Ruby calls the partition method from the Enumerable module, instead of the one from the String module as I wanted.
How can I get Ruby to call the desired method?