Module: LetBang::ClassMethods

Defined in:
lib/shaf/spec/let_bang.rb

Instance Method Summary collapse

Instance Method Details

#let!(name, &block) ⇒ Object



5
6
7
8
9
# File 'lib/shaf/spec/let_bang.rb', line 5

def let!(name, &block)
  return unless respond_to? :let
  let(name, &block)
  let_bangs << name
end

#let_bangsObject



11
12
13
# File 'lib/shaf/spec/let_bang.rb', line 11

def let_bangs
  @let_bangs ||= Set.new
end