dale.quigg / aspentech.com wrote:
<snip>
> However, I want to write a class where I pass something like
>   '["This"]["Thing"]'
> or
>   '["That"]["Thing"]'
> and then make a call like;
>   puts LocalTree@YamlLocation
> but I can't figure out how to make this work.

Found it, sorry to bother.
yaml_vari = '["This"]["Thing"]'
puts eval("LocalTree" + yaml_vari)