Module: RSpec::LetFallback::Methods
- Defined in:
- lib/rspec/let_fallback/methods.rb
Instance Method Summary collapse
Instance Method Details
#let?(name, fallback) ⇒ Boolean
4 5 6 7 8 9 10 |
# File 'lib/rspec/let_fallback/methods.rb', line 4 def let?(name, fallback) our_module = RSpec::Core::MemoizedHelpers.module_for(self.class) return fallback unless our_module.instance_methods(false).include?(name) our_module.instance_method(name).bind(self).call end |