From: Benny Date: 2004-04-19T22:59:06+09:00 Subject: Re: YAML question: calling a method Asfand Yar Qazi wrote: > Benny wrote: >> hi, >> >> from what I've learned from the yaml.rb docs I can initialize an object >> in YAML with >> >> !ruby/object:Classname >> para1: val1 >> para2: val2 >> >> now how can I call a specific method of this object (in YAML as well)? >> > > YAML is only a serialisation language... its not a programming language. > It holds data, it can't perform operations on that data. > I only want to place the result of some methods in the YAML-data (as placeholder) so that it is at the right place when the YAML-file gets parsed by yaml.rb (see my other posting). I want to use YAML as template-language for controlling what is done by the parsing (interpreting) ruby script - not as programming language. > > > -- > http://www.it-is-truth.org/