Module: RLet

Defined in:
lib/rlet/expose.rb,
lib/rlet.rb,
lib/rlet/concern.rb,
lib/rlet/version.rb,
lib/rlet/functional.rb,
lib/rlet/lazy_options.rb

Overview

Include this module when you want to have a hash initializer. This allows you to build let() definitions derived from what gets passed into the initializer

For example:

class Task

include Let
include RLet::LazyOptions

let(:name) { options[:name] }

end

t = Task.new name: ‘MyTask’ t.name

> ‘MyTask’

Defined Under Namespace

Modules: Concern, Expose, Functional, LazyOptions

Constant Summary collapse

VERSION =
"0.8.0"