[Plugin dev] Parsing vars in multiple sections

Hello. I want to parse plugin’s config this way:

...

      config_section :apples, multi: true do
        config_param :keys, :array, default: [], value_type: :string
      end

      config_section :oranges, multi: true do
        config_param :keys, :array, default: [], value_type: :string
      end

      def configure(conf)
        super

        conf.elements.each do |el|
          puts(el['keys'])
        end
...

It works, but returns strings (so it’s raw config, before parsing).
Is it possible to access prased values from configuration element object?

Otherways I should cycle this way:
@apples.each
@oranges.each

which is not convenient in my case.
Thanks!

How about like this?

If your configuration is:

<apples>
  keys a,b,c,d
</apples>

Then you can access via @apples.first[:keys] in configure method.
It returns ["a", "b","c","d"] in array.