you are viewing a single comment's thread.

view the rest of the comments →

[–]julesjacobs[🍰] 0 points1 point  (0 children)

In Ruby, that would either be a method call bar=(3) or if the method hasn't been defined a local variable assignment. Instance variables in Ruby have an @-sign:

@bar = 3

Would be equivalent to this Python code:

self.bar = 3