Method: IfElse::FalseIfBehavior#unless

Defined in:
lib/ifelse.rb

#unless {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



22
23
24
25
# File 'lib/ifelse.rb', line 22

def unless
  raise "Syntax Error: unless without block" unless block_given?
  yield self
end