Class: RubyPost::Scale

Inherits:
Option show all
Defined in:
lib/options.rb

Overview

Wrapped the scaled metapost command. Resizes the drawable.

Direct Known Subclasses

Scaled

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Parameters:

  • value

    the value to set the attribute scale to.



112
113
114
# File 'lib/options.rb', line 112

def scale=(value)
  @scale = value
end

Instance Method Details

#compileObject



118
119
120
# File 'lib/options.rb', line 118

def compile
  'scaled ' + @scale.compile
end