Class: Cat::Style::Rotate

Inherits:
Object
  • Object
show all
Defined in:
lib/cat/style/rotate.rb

Instance Method Summary collapse

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_sObject



8
9
10
# File 'lib/cat/style/rotate.rb', line 8

def to_s
  "transform: rotate(#{@deg});"
end