Class: Cat::Style::Animation
- Inherits:
-
Object
- Object
- Cat::Style::Animation
- Defined in:
- lib/cat/style/animation.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ Animation
constructor
A new instance of Animation.
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ Animation
4 5 6 |
# File 'lib/cat/style/animation.rb', line 4 def initialize(name) @name = name end |
Instance Method Details
#to_s ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/cat/style/animation.rb', line 8 def to_s %{ animation-name: #{@name}; animation-duration: 2.79s; animation-direction: reverse; animation-iteration-count: infinite; animation-timing-function: linear; } end |