Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ruby is quite similar.

attr_accessor :left, :top, :width, :height, :right, :bottom

And you can change these to computed properties (regular methods) later without affecting the callsites



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: