[Rock-dev] Modifying a complex properties from ruby
Sylvain Joyeux
bir.sylvain at gmail.com
Fri Sep 5 15:48:27 CEST 2014
Could you be more specific as to the type of property.
Moreover, do you try to change the property while the component is running ?
Sylvain
On Thu, Sep 4, 2014 at 3:19 PM, Ajish Babu <ajish.babu at dfki.de> wrote:
> Hi all,
>
> I have a complex property with std::vector (sub-configs) inside std:vector
> (configs). I am trying to modify the property from ruby script.
>
> Changing any already existing value works fine. But once I try to push a new
> element to the sub-configs and then write it back like
>
> configs = task.configs.to_a
>
> configs.each do | config |
> sub_configs = config.sub_configs.to_a
> sub_configs.push( Types::SubConfig.new )
> config.sub_configs = sub_configs
> end
>
> task.configs = configs
>
> it crashes. Does anybody know how this can be achieved?
>
> Best
> Ajish
>
>
>
>
> _______________________________________________
> Rock-dev mailing list
> Rock-dev at dfki.de
> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev
>
More information about the Rock-dev
mailing list