NoBlockGiven() public static method

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