Class: Pruim::Movie
- Inherits:
-
Object
- Object
- Pruim::Movie
- Defined in:
- lib/pruim/movie.rb
Instance Attribute Summary collapse
-
#frames ⇒ Object
readonly
Returns the value of attribute frames.
-
#h ⇒ Object
readonly
Returns the value of attribute h.
-
#w ⇒ Object
readonly
Returns the value of attribute w.
Instance Method Summary collapse
-
#initialize(w, h, index = 0, nframes = 1, nlayers = 1, data = nil) ⇒ Movie
constructor
A new instance of Movie.
Constructor Details
#initialize(w, h, index = 0, nframes = 1, nlayers = 1, data = nil) ⇒ 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
#frames ⇒ Object (readonly)
Returns the value of attribute frames.
5 6 7 |
# File 'lib/pruim/movie.rb', line 5 def frames @frames end |
#h ⇒ Object (readonly)
Returns the value of attribute h.
4 5 6 |
# File 'lib/pruim/movie.rb', line 4 def h @h end |
#w ⇒ Object (readonly)
Returns the value of attribute w.
3 4 5 |
# File 'lib/pruim/movie.rb', line 3 def w @w end |