Class: RubyPost::DotLabel
Overview
Wraps the metapost dotlabel command. Places a dot a the position of the text aswell as the text.
Instance Attribute Summary
Attributes inherited from BaseLabel
Instance Method Summary collapse
Methods inherited from BaseLabel
#add_option, #bot, #bottom, #bottom_left, #bottom_right, #color, #colour, #compile_options, #initialize, #left, #lft, #llft, #lrt, #right, #rotate, #rt, #scale, #set_position, #set_text, #top, #top_left, #top_right, #translate, #ulft, #urt
Constructor Details
This class inherits a constructor from RubyPost::BaseLabel
Instance Method Details
#compile ⇒ Object
170 171 172 |
# File 'lib/label.rb', line 170 def compile 'label.' + @place + '(' + @text.compile + ', ' + @position.compile + ') ' + + ";\n" end |