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.
55 56 57 58 |
# File 'lib/drawable.rb', line 55 def initialize(c=String.new) super() @command = c end |
Instance Attribute Details
#command=(value) ⇒ Object (writeonly)
Sets the attribute command
53 54 55 |
# File 'lib/drawable.rb', line 53 def command=(value) @command = value end |
Instance Method Details
#compile ⇒ Object
60 61 62 |
# File 'lib/drawable.rb', line 60 def compile @command.compile end |