mapnik / Ruby-Mapnik

Ruby Bindings for Mapnik
MIT License
66 stars 13 forks source link

private members not available to class? #10

Closed springmeyer closed 12 years ago

springmeyer commented 13 years ago

running ruby 1.9.2 on ubuntu and seeing:

$ ruby-1.9.2-p290 rundemo.rb 
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/rule.rb:98:in `symbols': undefined local variable or method `__symbols__' for #<Mapnik::Rule:0x0000000227e758> (NameError)
    from /home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/rule.rb:79:in `fill='
    from rundemo.rb:17:in `block (4 levels) in <main>'
    from /home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/style.rb:52:in `rule'
    from rundemo.rb:16:in `block (3 levels) in <main>'
    from /home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/layer.rb:54:in `style'
    from rundemo.rb:15:in `block (2 levels) in <main>'
    from /home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/map.rb:138:in `layer'
    from rundemo.rb:13:in `block in <main>'
    from rundemo.rb:4:in `initialize'
    from rundemo.rb:4:in `new'
    from rundemo.rb:4:in `<main>'
springmeyer commented 13 years ago

this fixes it 0a063f4fa715a739 - but of course not sure why this would be needed. @elliotlaster - please advise.

elliotlaster commented 13 years ago

Looks like something with YARV and the way Rice dispatches method calls. I'm going to try to isolate it, but in the meantime, I removed the private declarations, which should take care of it.

springmeyer commented 12 years ago

closing, as this was resolved by removing things... which also resolves #8.