Class: RubyPost::CustomDrawable
- Defined in:
- lib/drawable.rb
Overview
A custom drawable. Send it a metapost string
Instance Attribute Summary collapse
-
#command ⇒ Object
writeonly
Sets the attribute command.
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(c = String.new) ⇒ CustomDrawable
constructor
A new instance of CustomDrawable.
Constructor Details
#initialize(c = String.new) ⇒ CustomDrawable
Returns a new instance of CustomDrawable.
65 66 67 68 |
# File 'lib/drawable.rb', line 65 def initialize(c=String.new) super() @command = c end |
Instance Attribute Details
#command=(value) ⇒ Object (writeonly)
Sets the attribute command
63 64 65 |
# File 'lib/drawable.rb', line 63 def command=(value) @command = value end |
Instance Method Details
#compile ⇒ Object
70 71 72 |
# File 'lib/drawable.rb', line 70 def compile @command.compile end |