If you work with Ruby, you should know that arguments in methods can be set to a default value, for example:
```
def perform(arg: "d")
# .
end
```
But did you know that you can use instance variables as default values, like this:
```
class MyCls
def initialize(arg); @arg = arg; end
def perform(arg = @arg); end
end
```
Or other arguments of this method:
```
module MyMod
def self.perform(a = nil, arg: a); end
end
```
#Ruby #Method #Default #Arguments #KeywordArguments #InstanceVariable

