Class: RubyPost::DotLabel

Inherits:
BaseLabel show all
Defined in:
lib/label.rb

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

#position, #text

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

#compileObject



170
171
172
# File 'lib/label.rb', line 170

def compile
  'label.' + @place + '(' + @text.compile + ', ' + @position.compile + ') ' + compile_options + ";\n"
end