class Phantom::SVG::Parser::AbstractImageReader
Image reader.
Attributes
frames[R]
has_animation[R]
has_animation?[R]
height[R]
loops[R]
skip_first[R]
width[R]
Public Class Methods
new(path = nil, options = {})
click to toggle source
Construct AbstractImageReader
object.
# File lib/phantom/parser/abstract_image_reader.rb, line 10 def initialize(path = nil, options = {}) read(path, options) end
Public Instance Methods
read(_path, _options = {})
click to toggle source
Read image file from path.
# File lib/phantom/parser/abstract_image_reader.rb, line 15 def read(_path, _options = {}) fail 'Called abstract method.' end
Private Instance Methods
reset()
click to toggle source
Reset SVGReader
object.
# File lib/phantom/parser/abstract_image_reader.rb, line 22 def reset @frames = [] @width = nil @height = nil @loops = nil @skip_first = nil @has_animation = false end