IronRuby.Builtins.RangeOps.CheckBegin C# (CSharp) Method

CheckBegin() private static method

Check that the object responds to "succ".
private static CheckBegin ( EachStorage storage, object begin ) : void
storage EachStorage
begin object
return void
        private static void CheckBegin(EachStorage/*!*/ storage, object begin) {
            if (!Protocols.RespondTo(storage.RespondToSite, storage.Context, begin, "succ")) {
                throw RubyExceptions.CreateTypeError("can't iterate from {0}", storage.Context.GetClassDisplayName(begin));
            }
        }