Class: RubyPost::Scale
Overview
Wrapped the scaled metapost command. Resizes the drawable.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#scale ⇒ Object
writeonly
Sets the attribute scale.
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(scale = 1) ⇒ Scale
constructor
A new instance of Scale.
Constructor Details
#initialize(scale = 1) ⇒ Scale
Returns a new instance of Scale.
114 115 116 |
# File 'lib/options.rb', line 114 def initialize(scale=1) @scale = scale end |
Instance Attribute Details
#scale=(value) ⇒ Object (writeonly)
Sets the attribute scale
112 113 114 |
# File 'lib/options.rb', line 112 def scale=(value) @scale = value end |
Instance Method Details
#compile ⇒ Object
118 119 120 |
# File 'lib/options.rb', line 118 def compile 'scaled ' + @scale.compile end |