Class: Phantom::SVG::Frame
- Inherits:
-
Object
- Object
- Phantom::SVG::Frame
- Defined in:
- lib/phantom/frame.rb
Overview
Frame class for “Key Frames” implementation in SVG
Defined Under Namespace
Classes: ViewBox
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#height ⇒ Object
Returns the value of attribute height.
-
#namespaces ⇒ Object
Returns the value of attribute namespaces.
-
#surfaces ⇒ Object
Returns the value of attribute surfaces.
-
#viewbox ⇒ Object
Returns the value of attribute viewbox.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Frame
constructor
A new instance of Frame.
Constructor Details
#initialize(options = {}) ⇒ Frame
Returns a new instance of Frame.
7 8 9 10 11 12 13 14 |
# File 'lib/phantom/frame.rb', line 7 def initialize( = {}) set_duration([:duration]) set_surfaces([:surfaces]) set_width([:width]) set_height([:height]) set_viewbox([:viewbox]) set_namespaces([:namespaces]) end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
5 6 7 |
# File 'lib/phantom/frame.rb', line 5 def duration @duration end |
#height ⇒ Object
Returns the value of attribute height.
5 6 7 |
# File 'lib/phantom/frame.rb', line 5 def height @height end |
#namespaces ⇒ Object
Returns the value of attribute namespaces.
5 6 7 |
# File 'lib/phantom/frame.rb', line 5 def namespaces @namespaces end |
#surfaces ⇒ Object
Returns the value of attribute surfaces.
5 6 7 |
# File 'lib/phantom/frame.rb', line 5 def surfaces @surfaces end |
#viewbox ⇒ Object
Returns the value of attribute viewbox.
5 6 7 |
# File 'lib/phantom/frame.rb', line 5 def viewbox @viewbox end |
#width ⇒ Object
Returns the value of attribute width.
5 6 7 |
# File 'lib/phantom/frame.rb', line 5 def width @width end |