Example #1
0
        public static RubySymbol GetSymbol(RubyString str)
        {
            var s = str.Text;

            if (Symbols.ContainsKey(s))
            {
                return(Symbols[s]);
            }
            var sym = new RubySymbol(s)
            {
                ruby_string = str
            };

            return(sym);
        }
Example #2
0
 public RubyRegexp(RubyString pattern, RubyRegexpOptions options)
 {
     this.pattern = pattern;
     this.options = options;
     ClassName    = RubySymbol.GetSymbol("Regexp");
 }
Example #3
0
 public RubyStringDebugView(RubyString str)
 {
     this.str = str;
 }
Example #4
0
 public object this[RubyString key] {
     get { return(this[RubySymbol.GetSymbol(key)]); } set { this[RubySymbol.GetSymbol(key)] = value; }
 }