• friend_of_satan@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    ·
    edit-2
    2 days ago

    This implies that integers in ROR are complex objects with properties that would be unhelpful in the majority of scenarios. Is that right?

    • myotheraccount@lemmy.world
      link
      fedilink
      arrow-up
      15
      ·
      2 days ago

      Integers are just integers in ruby, with no structure backing them. They behave like objects, but only in some respects. You can call methods on them, but you can’t extend individual numbers with properties for example (which would require them to have structure).