私はRubyを初めて使用します、このNoobieの質問でごめんなさい
#file1.rb
a = 1
#file2.rb
require './file1'
a ||= 2
puts a # show 2, not 1 as expected
理由がわからない
私はRubyを初めて使用します、このNoobieの質問でごめんなさい
#file1.rb
a = 1
#file2.rb
require './file1'
a ||= 2
puts a # show 2, not 1 as expected
理由がわからない