Method: RubyPost::Picture#initialize
- Defined in:
- lib/drawable.rb
#initialize(name = "picture_number" + @@default_name.to_s) ⇒ Picture
intialise a picture with it’s name, use a string!
22 23 24 25 26 27 28 |
# File 'lib/drawable.rb', line 22 def initialize(name="picture_number" + @@default_name.to_s) super() @name = name @draw_commands = Array.new @@default_name = @@default_name + 1 @@picture_precompiler.add_picture(self) end |