Class: Pruim::Movie

Inherits:
Object
  • Object
show all
Defined in:
lib/pruim/movie.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(w, h, index = 0, nframes = 1, nlayers = 1, data = nil) ⇒ Movie

Returns a new instance of Movie.



7
8
9
10
11
12
13
# File 'lib/pruim/movie.rb', line 7

def initialize(w, h, index = 0, nframes = 1, nlayers = 1, data = nil)
  @w      = w
  @h      = h
  @frames = Array.new(nframes) do | index |
    Movie.new(self, w, h, index, nlayers, data)
  end 
end

Instance Attribute Details

#framesObject (readonly)

Returns the value of attribute frames.



5
6
7
# File 'lib/pruim/movie.rb', line 5

def frames
  @frames
end

#hObject (readonly)

Returns the value of attribute h.



4
5
6
# File 'lib/pruim/movie.rb', line 4

def h
  @h
end

#wObject (readonly)

Returns the value of attribute w.



3
4
5
# File 'lib/pruim/movie.rb', line 3

def w
  @w
end