RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in