✨Ben Hamill✨ is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

apparently the variable _ is replaced by whatever last output was

@boots Yeah. I'm pretty sure Ruby's IRB would behave some kinda similar way just with different particulars. I bet you'd end up at Class or Module instead of 'string'.

✨Ben Hamill✨ @benhamill

@boots Yeah:

irb(main):001:0> _ = "hi"
=> "hi"
irb(main):002:0> _
=> "hi"
irb(main):003:0> _.class
=> String
irb(main):004:0> _.class
=> Class
irb(main):005:0> _
=> Class

· Web · 0 · 1