Class: Cat::Style::Rotate
- Inherits:
-
Object
- Object
- Cat::Style::Rotate
- Defined in:
- lib/cat/style/rotate.rb
Instance Method Summary collapse
-
#initialize(deg) ⇒ Rotate
constructor
A new instance of Rotate.
- #to_s ⇒ Object
Constructor Details
#initialize(deg) ⇒ Rotate
Returns a new instance of Rotate.
4 5 6 |
# File 'lib/cat/style/rotate.rb', line 4 def initialize(deg) @deg = "#{deg.to_i}deg" end |
Instance Method Details
#to_s ⇒ Object
8 9 10 |
# File 'lib/cat/style/rotate.rb', line 8 def to_s "transform: rotate(#{@deg});" end |