File: image_base.rb

package info (click to toggle)
ruby-fastimage 2.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,008 kB
  • sloc: ruby: 1,442; xml: 7; makefile: 2; sh: 1
file content (17 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module FastImageParsing
  class ImageBase # :nodoc:
    def initialize(stream)
      @stream = stream
    end
  
    # Implement in subclasses
    def dimensions
      raise NotImplementedError
    end
    
    # Implement in subclasses if appropriate
    def animated?
      nil
    end
  end
end