Class: RubyPost::Label
Overview
Wraps the metapost label command
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
160 161 162 |
# File 'lib/label.rb', line 160 def compile 'label.' + @place + '(' + @text.compile + ', ' + @position.compile + ') ' + + ";\n" end |