- source
def f_hoge(name)
return if name.nil?
f_hoge = "hoge"
end
p "aiueo"
p f_hoge "aaa"
p f_hoge nil
- execution
"aiueo"
"hoge"
nil
Go to list of users who liked
More than 3 years have passed since last update.
def f_hoge(name)
return if name.nil?
f_hoge = "hoge"
end
p "aiueo"
p f_hoge "aaa"
p f_hoge nil
"aiueo"
"hoge"
nil
Register as a new user and use Qiita more conveniently
Go to list of users who liked