我写了这段代码,但不知道为什么它不打印第二句,它只打印第一部分,即“Some string concat is like”。我也期待从 TalkToMe 方法中看到句子的其余部分。
object1 = Object.new
def object1.TalkToMe
puts ("Depending on the time, they may be in one place or another.")
end
object1.TalkToMe
puts "Some string concat is like " #{object1.TalkToMe} "