S
Seebs
Running some simple tests with Prawn, I am getting thousands of lines
of warnings from Ruby 1.9.1:
/usr/local/lib/ruby/gems/1.9.1/gems/prawn-layout-0.3.2/lib/prawn/table/cell.rb:255: warning: instance variable @text_color not initialized
There are hundreds of these, and they seem to come from a lot of usages
like:
e.text_color ||= @text_color
or this kind of usage:
def page_content
@active_stamp_stream || @store[@page_content]
end
In the latter case, @store is apparently fine, it's just @active_stamp_screen
which is uninitialized.
Should I infer that the library should be setting these all to nil in its
initialize()?
-s
of warnings from Ruby 1.9.1:
/usr/local/lib/ruby/gems/1.9.1/gems/prawn-layout-0.3.2/lib/prawn/table/cell.rb:255: warning: instance variable @text_color not initialized
There are hundreds of these, and they seem to come from a lot of usages
like:
e.text_color ||= @text_color
or this kind of usage:
def page_content
@active_stamp_stream || @store[@page_content]
end
In the latter case, @store is apparently fine, it's just @active_stamp_screen
which is uninitialized.
Should I infer that the library should be setting these all to nil in its
initialize()?
-s