Hacktastic! Easy Lazy Attribute Initialization in Ruby
Whether or not you agree with the use of lazy initialized attributes, you’d probably agree that writing the accessor method can be a bit tedious at times; especially when you’re used to Ruby’s attr_accessor, attr_reader, and attr_writer methods. Introducing lazy_attr_accessor & lazy_attr_reader
Post a comment