Esempio n. 1
0
 public static object SetOptions(RubyContext/*!*/ context, YamlStream/*!*/ self, Hash value) {
     return self.Options = value;
 }
Esempio n. 2
0
 public static RubyArray Add(RubyContext/*!*/ context, YamlStream/*!*/ self, object document) {
     IListOps.Append(context, self._documents, document);
     return self._documents;
 }
Esempio n. 3
0
 public static RubyArray Add(YamlStream/*!*/ self, object document)
 {
     IListOps.Append(self._documents, document);
     return self._documents;
 }
Esempio n. 4
0
 public static object Emit(YamlCallSiteStorage /*!*/ siteStorage, YamlStream /*!*/ self, [Optional] RubyIO io)
 {
     return(RubyYaml.DumpAll(siteStorage, self._documents, io));
 }
Esempio n. 5
0
 public static Hash GetOptions(YamlStream/*!*/ self)
 {
     return self._options;
 }
Esempio n. 6
0
 public static RubyArray SetDocuments(YamlStream/*!*/ self, RubyArray value)
 {
     return self._documents = value;
 }
Esempio n. 7
0
 public static Hash GetOptions(YamlStream /*!*/ self)
 {
     return(self._options);
 }
Esempio n. 8
0
 public static object GetDocument(RubyContext/*!*/ context, YamlStream/*!*/ self, [DefaultProtocol]int index)
 {
     return IListOps.GetElement(self._documents, index);
 }
Esempio n. 9
0
 public static RubyArray GetDocuments(YamlStream /*!*/ self)
 {
     return(self._documents);
 }
Esempio n. 10
0
 public static RubyArray SetDocuments(YamlStream /*!*/ self, RubyArray value)
 {
     return(self._documents = value);
 }
Esempio n. 11
0
 public static object EditDocument(YamlStream /*!*/ self, [DefaultProtocol] int index, object document)
 {
     return(IListOps.SetElement(self._documents, index, document));
 }
Esempio n. 12
0
 public static object GetDocument(RubyContext /*!*/ context, YamlStream /*!*/ self, [DefaultProtocol] int index)
 {
     return(IListOps.GetElement(self._documents, index));
 }
Esempio n. 13
0
 public static RubyArray Add(YamlStream /*!*/ self, object document)
 {
     IListOps.Append(self._documents, document);
     return(self._documents);
 }
Esempio n. 14
0
 public static object Emit(RubyContext/*!*/ context, YamlStream/*!*/ self, [Optional]RubyIO io) {
     return RubyYaml.DumpAll(context, self._documents, io);
 }
Esempio n. 15
0
 public static object GetDocument(RubyContext/*!*/ context, YamlStream/*!*/ self, object index) {
     return IListOps.GetElement(self.Documents, Protocols.CastToFixnum(context, index));
 }
Esempio n. 16
0
 public static object Emit(YamlCallSiteStorage/*!*/ siteStorage, YamlStream/*!*/ self, [Optional]RubyIO io)
 {
     return RubyYaml.DumpAll(siteStorage, self._documents, io);
 }
Esempio n. 17
0
 public static object EditDocument(RubyContext/*!*/ context, YamlStream/*!*/ self, object index, object document) {
     return IListOps.SetElement(context, self.Documents, Protocols.CastToFixnum(context, index), document);
 }
Esempio n. 18
0
 public static RubyArray GetDocuments(YamlStream/*!*/ self)
 {
     return self._documents;
 }
Esempio n. 19
0
 public static object GetDocuments(RubyContext/*!*/ context, YamlStream/*!*/ self) {
     return self.Documents;
 }
Esempio n. 20
0
 public static MutableString Inspect(RubyContext/*!*/ context, YamlStream/*!*/ self)
 {
     MutableString result = MutableString.CreateMutable("#<YAML::Stream:", RubyEncoding.Binary);
     RubyUtils.AppendFormatHexObjectId(result, RubyUtils.GetObjectId(context, self))
     .Append(" @documents=")
     .Append(context.Inspect(self._documents))
     .Append(", options=")
     .Append(context.Inspect(self._options))
     .Append('>');
     return result;
 }
Esempio n. 21
0
 public static object SetDocuments(RubyContext/*!*/ context, YamlStream/*!*/ self, RubyArray value) {
     return self.Documents = value;
 }
Esempio n. 22
0
 public static Hash SetOptions(YamlStream/*!*/ self, Hash value)
 {
     return self._options = value;
 }
Esempio n. 23
0
 public static object GetOptions(RubyContext/*!*/ context, YamlStream/*!*/ self) {
     return self.Options;
 }
Esempio n. 24
0
 public static object EditDocument(YamlStream/*!*/ self, [DefaultProtocol]int index, object document)
 {
     return IListOps.SetElement(self._documents, index, document);
 }
Esempio n. 25
0
 public static Hash SetOptions(YamlStream /*!*/ self, Hash value)
 {
     return(self._options = value);
 }