Beispiel #1
0
 private RubyModule(string module_name)
 {
     Name      = module_name;
     Symbol    = RubySymbol.GetSymbol(module_name);
     ClassName = RubySymbol.GetSymbol("Module");
     Modules.Add(module_name, this);
 }
Beispiel #2
0
 public RubyString(byte[] raw, Encoding encoding)
 {
     this.raw      = raw;
     this.encoding = encoding;
     set_by_raw    = true;
     ClassName     = RubySymbol.GetSymbol("String");
 }
Beispiel #3
0
 public RubyString(byte[] raw)
 {
     this.raw   = raw;
     encoding   = Encoding.Default;
     set_by_raw = true;
     ClassName  = RubySymbol.GetSymbol("String");
 }
Beispiel #4
0
 private RubyClass(string class_name)
 {
     Name      = class_name;
     Symbol    = RubySymbol.GetSymbol(class_name);
     ClassName = RubySymbol.GetSymbol("Class");
     Classes.Add(class_name, this);
 }
Beispiel #5
0
 public RubyString(string unicode_text)
 {
     encoding    = Encoding.Unicode;
     str         = unicode_text;
     set_by_text = true;
     ClassName   = RubySymbol.GetSymbol("String");
     Encoding    = Encoding.UTF8;
 }
Beispiel #6
0
 public RubyArray(int capacity)
 {
     list      = new List <object>(capacity);
     ClassName = RubySymbol.GetSymbol("Array");
 }
Beispiel #7
0
 public RubyArray(IEnumerable <object> collection)
 {
     list      = new List <object>(collection);
     ClassName = RubySymbol.GetSymbol("Array");
 }
Beispiel #8
0
 public RubyArray()
 {
     list      = new List <object>();
     ClassName = RubySymbol.GetSymbol("Array");
 }
Beispiel #9
0
 public RubyHash(object default_value)
 {
     DefaultValue = default_value;
     ClassName    = RubySymbol.GetSymbol("Hash");
 }
Beispiel #10
0
 public RubyFixnum(long value)
 {
     Value     = value;
     ClassName = RubySymbol.GetSymbol("Fixnum");
 }
Beispiel #11
0
 public RubyStruct()
 {
     ClassName = RubySymbol.GetSymbol("Struct");
 }
Beispiel #12
0
 public RubyRegexp(RubyString pattern, RubyRegexpOptions options)
 {
     this.pattern = pattern;
     this.options = options;
     ClassName    = RubySymbol.GetSymbol("Regexp");
 }
Beispiel #13
0
 private RubyBool(bool value)
 {
     Value     = value;
     ClassName = RubySymbol.GetSymbol("Bool");
 }
Beispiel #14
0
 private RubyNil()
 {
     ClassName = RubySymbol.GetSymbol("NilClass");
 }
Beispiel #15
0
 public object this[RubyString key] {
     get { return(this[RubySymbol.GetSymbol(key)]); } set { this[RubySymbol.GetSymbol(key)] = value; }
 }
Beispiel #16
0
 public RubyFloat(double value)
 {
     Value     = value;
     ClassName = RubySymbol.GetSymbol("Float");
 }