NoBlockGiven() public static method

public static NoBlockGiven ( ) : Exception
return System.Exception
Example #1
0
 public static BlockParam /*!*/ CreateBfcForYield(Proc proc)
 {
     if (proc != null)
     {
         return(new BlockParam(proc, BlockCallerKind.Yield, false));
     }
     else
     {
         throw RubyExceptions.NoBlockGiven();
     }
 }