method
let

1.3.1 -
Show latest stable
-
0 notes -
Class: Spec::Example::ExampleGroupMethods
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
let(name, &block)
public
Hide source
# File lib/spec/example/example_group_methods.rb, line 168 def let(name, &block) define_method name do @assignments ||= {} @assignments[name] ||= instance_eval(&block) end end