Examples of 'Things' that are not Objects in Ruby

前端 未结 4 1031
离开以前
离开以前 2021-02-05 08:23

\"Everything is an object\" was one of the first things I learned about Ruby, but in Peter Cooper\'s Beginning Ruby: From Novice to Professional, it is mentioned that \

4条回答
  •  悲哀的现实
    2021-02-05 08:55

    In the case of variable assignment, i.e. product = 5 * 5 the variable is not an object... so add that to the list

提交回复
热议问题