I just made Ruby++

How’s that? Can’t an object modify itself?It sort of can, but really it can’t. An object can modify any of its instance variables, sometimes a string can modify itself.But it turns out that numbers aren’t even stored like other objects in Ruby, but they’re immediate values. That is variables storing numbers don’t hold a reference to a generic object but they hold the value directly. The same happens for other object types such as symbols, for example.The only way we can change the value of a numeric variable is by reassigning it.


I just made Ruby++ #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/i-just-made-ruby

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles