rors.org

Personal website of Dejan Simic, a Ruby On Rails developer working for Less Everything

andand

I really, really like andand . Try it and stop repeating yourself.

I mean, why would you want to write this:

entry.at('description') && entry.at('description').inner_text

when you can write this:

entry.at('description').andand.inner_text

  • Reg Braithwaite on 2008-03-24

    Thank you! I hope you don’t mind my quoting your post on andand

  • Dejan on 2008-03-24

    Cool, thanks! :)

  • roger degree search on 2008-07-30

    It is true. This is one of the nicest ‘gems’ I’ve run into for normal use.

Any thoughts?



Fork me on GitHub