Class: AnimateIt::Output
- Inherits:
-
Struct
- Object
- Struct
- AnimateIt::Output
- Defined in:
- lib/animate_it/output.rb
Overview
Declarative output target: one rendered file at one path.
format selects the encoder; path is repo-relative (joined onto
Rails.root by the renderer); frame is set for single-frame stills,
nil for animated outputs (the whole composition).
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#frame ⇒ Object
Returns the value of attribute frame.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format
6 7 8 |
# File 'lib/animate_it/output.rb', line 6 def format @format end |
#frame ⇒ Object
Returns the value of attribute frame
6 7 8 |
# File 'lib/animate_it/output.rb', line 6 def frame @frame end |
#path ⇒ Object
Returns the value of attribute path
6 7 8 |
# File 'lib/animate_it/output.rb', line 6 def path @path end |
Instance Method Details
#absolute_path ⇒ Object
11 12 13 |
# File 'lib/animate_it/output.rb', line 11 def absolute_path Rails.root.join(path.to_s) end |
#still? ⇒ Boolean
7 8 9 |
# File 'lib/animate_it/output.rb', line 7 def still? !frame.nil? end |