Example #1
0
 public static object SetOptions(RubyContext/*!*/ context, YamlStream/*!*/ self, Hash value) {
     return self.Options = value;
 }
Example #2
0
 public static RubyArray Add(RubyContext/*!*/ context, YamlStream/*!*/ self, object document) {
     IListOps.Append(context, self._documents, document);
     return self._documents;
 }
Example #3
0
 public static RubyArray Add(YamlStream/*!*/ self, object document)
 {
     IListOps.Append(self._documents, document);
     return self._documents;
 }
Example #4
0
 public static object Emit(YamlCallSiteStorage /*!*/ siteStorage, YamlStream /*!*/ self, [Optional] RubyIO io)
 {
     return(RubyYaml.DumpAll(siteStorage, self._documents, io));
 }
Example #5
0
 public static Hash GetOptions(YamlStream/*!*/ self)
 {
     return self._options;
 }
Example #6
0
 public static RubyArray SetDocuments(YamlStream/*!*/ self, RubyArray value)
 {
     return self._documents = value;
 }
Example #7
0
 public static Hash GetOptions(YamlStream /*!*/ self)
 {
     return(self._options);
 }
Example #8
0
 public static object GetDocument(RubyContext/*!*/ context, YamlStream/*!*/ self, [DefaultProtocol]int index)
 {
     return IListOps.GetElement(self._documents, index);
 }
Example #9
0
 public static RubyArray GetDocuments(YamlStream /*!*/ self)
 {
     return(self._documents);
 }
Example #10
0
 public static RubyArray SetDocuments(YamlStream /*!*/ self, RubyArray value)
 {
     return(self._documents = value);
 }
Example #11
0
 public static object EditDocument(YamlStream /*!*/ self, [DefaultProtocol] int index, object document)
 {
     return(IListOps.SetElement(self._documents, index, document));
 }
Example #12
0
 public static object GetDocument(RubyContext /*!*/ context, YamlStream /*!*/ self, [DefaultProtocol] int index)
 {
     return(IListOps.GetElement(self._documents, index));
 }
Example #13
0
 public static RubyArray Add(YamlStream /*!*/ self, object document)
 {
     IListOps.Append(self._documents, document);
     return(self._documents);
 }
Example #14
0
 public static object Emit(RubyContext/*!*/ context, YamlStream/*!*/ self, [Optional]RubyIO io) {
     return RubyYaml.DumpAll(context, self._documents, io);
 }
Example #15
0
 public static object GetDocument(RubyContext/*!*/ context, YamlStream/*!*/ self, object index) {
     return IListOps.GetElement(self.Documents, Protocols.CastToFixnum(context, index));
 }
Example #16
0
 public static object Emit(YamlCallSiteStorage/*!*/ siteStorage, YamlStream/*!*/ self, [Optional]RubyIO io)
 {
     return RubyYaml.DumpAll(siteStorage, self._documents, io);
 }
Example #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);
 }
Example #18
0
 public static RubyArray GetDocuments(YamlStream/*!*/ self)
 {
     return self._documents;
 }
Example #19
0
 public static object GetDocuments(RubyContext/*!*/ context, YamlStream/*!*/ self) {
     return self.Documents;
 }
Example #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;
 }
Example #21
0
 public static object SetDocuments(RubyContext/*!*/ context, YamlStream/*!*/ self, RubyArray value) {
     return self.Documents = value;
 }
Example #22
0
 public static Hash SetOptions(YamlStream/*!*/ self, Hash value)
 {
     return self._options = value;
 }
Example #23
0
 public static object GetOptions(RubyContext/*!*/ context, YamlStream/*!*/ self) {
     return self.Options;
 }
Example #24
0
 public static object EditDocument(YamlStream/*!*/ self, [DefaultProtocol]int index, object document)
 {
     return IListOps.SetElement(self._documents, index, document);
 }
Example #25
0
 public static Hash SetOptions(YamlStream /*!*/ self, Hash value)
 {
     return(self._options = value);
 }