Class: RubyPost::CustomDrawable

Inherits:
Drawable show all
Defined in:
lib/drawable.rb

Overview

A custom drawable. Send it a metapost string

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Parameters:

  • value

    the value to set the attribute command to.



63
64
65
# File 'lib/drawable.rb', line 63

def command=(value)
  @command = value
end

Instance Method Details

#compileObject



70
71
72
# File 'lib/drawable.rb', line 70

def compile
  @command.compile
end