Hacker GitHub

← All repos

hosh/rlet

View on GitHub ↗ ★ 9 Ruby

Ruby let(), lazy eval and functional library

3 mentions on Hacker News by 1 person: 1 story, 2 comments · first 2015-03-18 · latest 2015-06-22

Mentions per year 3 mentions · busiest year 2015 (3)
20082026
  1. To get lazy in Ruby, I've been using the rspec-style rlet gem: https://github.com/hosh/rlet For example, in Rail, instead of setting up a variable in a private method for a before_action, you write: `let(:ar_model) {…
    comment by cpursley · 2015-06-22 · in How Laziness Works
  2. Neat. If you're a Ruby developer check out rlet - a rspec-like let for lazy evaluation: http://github.com/hosh/rlet
    comment by cpursley · 2015-06-18 · in Thinking with Lazy Evaluation