Example #1
0
        internal void InsertMethodName(string /*!*/ methodName)
        {
            // insert the method name argument into the args
            object symbol = RubyContext.EncodeIdentifier(methodName);

            InsertSimple(0, new DynamicMetaObject(AstUtils.Constant(symbol), BindingRestrictions.Empty, symbol));
        }
Example #2
0
 public RubySymbol /*!*/ GetSymbol(RubyContext /*!*/ context)
 {
     return(_symbol ?? (_symbol = context.EncodeIdentifier(_string)));
 }
Example #3
0
 public static RubySymbol /*!*/ ToSymbol(RubyContext /*!*/ context, ClrName /*!*/ self)
 {
     return(context.EncodeIdentifier(self.MangledName));
 }
Example #4
0
 public RubySymbol/*!*/ GetSymbol(RubyContext/*!*/ context) {
     return _symbol ?? (_symbol = context.EncodeIdentifier(_string));
 }
Example #5
0
 public static bool RespondTo(CallSite <Func <CallSite, object, object, object> > /*!*/ respondToSite, RubyContext /*!*/ context, object target, string /*!*/ methodName)
 {
     return(IsTrue(respondToSite.Target(respondToSite, target, context.EncodeIdentifier(methodName))));
 }
Example #6
0
 public static bool RespondTo(CallSite<Func<CallSite, object, object, object>>/*!*/ respondToSite, RubyContext/*!*/ context, object target, string/*!*/ methodName)
 {
     return IsTrue(respondToSite.Target(respondToSite, target, context.EncodeIdentifier(methodName)));
 }
Example #7
0
 public static RubySymbol/*!*/ ToSymbol(RubyContext/*!*/ context, ClrName/*!*/ self) {
     return context.EncodeIdentifier(self.MangledName);
 }