Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
 public RubySymbol /*!*/ GetSymbol(RubyContext /*!*/ context)
 {
     return(_symbol ?? (_symbol = context.EncodeIdentifier(_string)));
 }
Ejemplo n.º 3
0
 public static RubySymbol /*!*/ ToSymbol(RubyContext /*!*/ context, ClrName /*!*/ self)
 {
     return(context.EncodeIdentifier(self.MangledName));
 }
Ejemplo n.º 4
0
 public RubySymbol/*!*/ GetSymbol(RubyContext/*!*/ context) {
     return _symbol ?? (_symbol = context.EncodeIdentifier(_string));
 }
Ejemplo n.º 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))));
 }
Ejemplo n.º 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)));
 }
Ejemplo n.º 7
0
 public static RubySymbol/*!*/ ToSymbol(RubyContext/*!*/ context, ClrName/*!*/ self) {
     return context.EncodeIdentifier(self.MangledName);
 }