Hi Eduardo,

What is config's type? Is it a regular Ruby list, or is it some sort of
collection returned from a .NET library? Maybe it's one of the items in the
config - could you provide a listing of the items in the config when you run
the code? It would also help if I could some of the surrounding routine.

I do find it hard to believe that's exactly what your code looks like,
unless you actually have a list of hashes where every key is :QuantityPer.
As an example, the following breaks:

config = [{:QuantityPer => "\#{2+2}"}, {:foo => "bar"}]
# .. the rest of your code here ...

# Prints the following:
2+2
4
NoMethodError: undefined method `include?' for nil:NilClass
        from (irb):28
        from (irb):28:in `each'
        from (irb):28
        from C:/IronRuby/lib/ruby/1.8/irb.rb:150:in `eval_input'
        from C:/IronRuby/lib/ruby/1.8/irb.rb:257:in `signal_status'
        from C:/IronRuby/lib/ruby/1.8/irb.rb:147:in `eval_input'
        from C:/IronRuby/lib/ruby/1.8/irb.rb:146:in `eval_input'
        from C:/IronRuby/lib/ruby/1.8/irb.rb:70:in `start'
        from C:/IronRuby/lib/ruby/1.8/irb.rb:69:in `catch'
        from C:/IronRuby/lib/ruby/1.8/irb.rb:69:in `start'
        from C:/IronRuby/bin/irb:13



Regards,

Charles

On Sat, Aug 28, 2010 at 9:33 AM, Eduardo Blumenfeld <li...@ruby-forum.com>wrote:

> Any Ideas?
>
> Thank you in advance,
>
> Eduardo Blumenfeld
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to