Class: RubyPost::Translate
Overview
Wraps the metapose shifted command.
The translation @t is specifed by a Pair
Instance Attribute Summary collapse
-
#t ⇒ Object
writeonly
Sets the attribute t.
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(p = Pair.new) ⇒ Translate
constructor
A new instance of Translate.
Constructor Details
#initialize(p = Pair.new) ⇒ Translate
Returns a new instance of Translate.
159 160 161 |
# File 'lib/options.rb', line 159 def initialize(p=Pair.new) @t = p end |
Instance Attribute Details
#t=(value) ⇒ Object (writeonly)
Sets the attribute t
157 158 159 |
# File 'lib/options.rb', line 157 def t=(value) @t = value end |
Instance Method Details
#compile ⇒ Object
163 164 165 |
# File 'lib/options.rb', line 163 def compile 'shifted ' + @t.compile end |