you are viewing a single comment's thread
view the rest of the comments
[–] 17 points 1 year ago* (1 child)

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

  • source
  • hideshow 1 child comment
  • [–] 16 points 1 year 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).

  • source
  • parent