Changed around line 137: hasExceptions true
-
- # details: when defining a method, parameters are positional-only by default,
- # but can be made keyword parameters (i.e. named) by appending a colon (:),
- # optionally followed by a default value:
- def greet(name, time_of_day:, location: "our great city")
- puts "Hello this fine #{time_of_day} in #{location}, #{name}!"
- end
Changed around line 402: semanticScholar 13
+
+ # details: when defining a method, parameters are positional-only by default,
+ # but can be made keyword parameters (i.e. named) by appending a colon (:),
+ # optionally followed by a default value:
+ def greet(name, time_of_day:, location: "our great city")
+ puts "Hello this fine #{time_of_day} in #{location}, #{name}!"
+ end