public static object MethodMissing(RubyScope /*!*/ scope, BlockParam block, string /*!*/ self, [NotNull] RubySymbol /*!*/ name, params object[] /*!*/ args) { if (name.EndsWith('=') || name.EndsWith('!')) { throw RubyExceptions.CreateTypeError("Mutating method `{0}' called for an immutable string (System::String)", name); } // TODO: forward to MutableString until we implement the methods here: return(KernelOps.SendMessageOpt(scope, block, ToStr(self), name.ToString(), args)); }
public static object Each(RubyScope /*!*/ scope, BlockParam /*!*/ block, Enumerator /*!*/ self) { // MRI doesn't send "send" message: return(KernelOps.SendMessageOpt(scope, block, self._targetObject, self._targetName, self._targetArguments)); }
public object Each(RubyScope /*!*/ scope, BlockParam /*!*/ block) { return(KernelOps.SendMessageOpt(scope, block, _targetObject, _targetName, _targetArguments)); }