t6d / smart_properties

Ruby accessors on steroids
MIT License
177 stars 20 forks source link

Read-only properties #6

Open t6d opened 10 years ago

t6d commented 10 years ago

Add support for automatically protecting writer methods when defining a property. Read-only properties should be writeable during during object initialization, but once the initializer is finished they should only be callable when explicitly using #send.