Пример #1
0
 public static Node /*!*/ ToYaml(RubyRegex /*!*/ self, [NotNull] RubyRepresenter /*!*/ rep)
 {
     return(rep.Scalar(
                rep.GetTagUri(self),
                self.Inspect().ToAsciiString(),
                ScalarQuotingStyle.None
                ));
 }
Пример #2
0
 public static Node /*!*/ ToYaml(RubyRegex /*!*/ self, [NotNull] RubyRepresenter /*!*/ rep)
 {
     return(rep.Scalar(
                rep.GetTagUri(self),
                self.Inspect().ToAsciiString(rep.Context.RubyOptions.Compatibility < RubyCompatibility.Ruby19),
                ScalarQuotingStyle.None
                ));
 }
Пример #3
0
 public static MutableString/*!*/ Inspect(RubyRegex/*!*/ self) {
     return self.Inspect();
 }
Пример #4
0
 public static Node ToYaml(RubyRegex/*!*/ self, [NotNull]RubyRepresenter/*!*/ rep)
 {
     return rep.Scalar(
         rep.GetTagUri(self),
         self.Inspect().ToAsciiString(),
         ScalarQuotingStyle.None
     );
 }
Пример #5
0
 public static Node/*!*/ ToYaml(RubyRegex/*!*/ self, [NotNull]RubyRepresenter/*!*/ rep) {
     return rep.Scalar(
         rep.GetTagUri(self), 
         self.Inspect().ToAsciiString(rep.Context.RubyOptions.Compatibility < RubyCompatibility.Ruby19),
         ScalarQuotingStyle.None
     );
 }