Class: RubyPost::Figure
Overview
wrapper for the metapost figure Figures actually become the figures that will to be viewed
Instance Method Summary collapse
- #add_drawable(d) ⇒ Object
- #compile ⇒ Object
-
#initialize ⇒ Figure
constructor
A new instance of Figure.
Constructor Details
#initialize ⇒ Figure
Returns a new instance of Figure.
157 158 159 |
# File 'lib/objects.rb', line 157 def initialize @draw_commands = Array.new end |
Instance Method Details
#add_drawable(d) ⇒ Object
161 162 163 |
# File 'lib/objects.rb', line 161 def add_drawable(d) @draw_commands.push(d) end |