ToYamlStyle() static private method

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

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