|
[Q] questions about Syck: msg#00003text.yaml.general
Hi, I have some questions about Syck. Q1. How to add original data type and data pattern? For example: - to get 'on'/'off' to be parsed as true/false. - to get '/^[A-Z]+$/' to be parsed as regular expression. Q2. Ruby 1.8.3 has just released. Which version of Syck is included in Ruby 1.8.3 and 1.8.2? What changes are there between them? Q3. The following options are defined in 'yaml/constants.rb': :Indent => 2, :UseHeader => false, :UseVersion => false, :Version => '1.0', :SortKeys => false, :AnchorFormat => 'id%03d', :ExplicitTypes => false, :WidthType => 'absolute', :BestWidth => 80, :UseBlock => false, :UseFold => false, :Encoding => :None These options are intended to be used witch Object#to_yaml(), YAML::Stream.new(), and YAML::Store.new(). But all except :Indent, :SortKeys, :ExplicitTypes and :UseBlock are not available when I tried on Ruby 1.8.2. What options are available in Ruby 1.8.2 and 1.8.3? Q4. Object#to_yaml or YAML.dump() always prints document separator '---'. Is there a way to suppress document separator? There were ':Separator otpion' in the YAML4r document, but it is not found in Syck. Could you give me any advice? -- regards, kwatch ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ANN] Kwalify 0.2.0 - a tiny schema validator for YAML: 00003, Makoto Kuwata |
|---|---|
| Next by Date: | Re: [Q] questions about Syck: 00003, why the lucky stiff |
| Previous by Thread: | [ANN] Kwalify 0.2.0 - a tiny schema validator for YAMLi: 00003, Makoto Kuwata |
| Next by Thread: | Re: [Q] questions about Syck: 00003, why the lucky stiff |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |