ToYamlStyle() static private method

static private ToYamlStyle ( RubyContext context, object styleObj ) : ScalarQuotingStyle
context RubyContext
styleObj object
return ScalarQuotingStyle
Beispiel #1
0
 public static object SetStyle(RubyContext /*!*/ context, ScalarNode /*!*/ self, object value)
 {
     self.Style = RubyYaml.ToYamlStyle(context, value);
     return(value);
 }
Beispiel #2
0
        internal ScalarQuotingStyle GetYamlStyle(object obj)
        {
            var site = _siteStorage.ToYamlStyle;

            return(RubyYaml.ToYamlStyle(Context, site.Target(site, obj)));
        }