• myotheraccount@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    19 hours 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).