Tsunami.Context.HandleImpl C# (CSharp) Method

HandleImpl() protected method

protected HandleImpl ( string line ) : System.Result
line string
return System.Result
        protected virtual Result HandleImpl(string line)
        {
            if (string.IsNullOrEmpty(line))
                return Result.ShouldPop;

            Option option = Options.GetSelected(line);
            if (option == null || option.Context == null)
                return Result.Unhandled;

            Child = option.Context;
            return Result.Handled;
        }