Class: MockImage

Inherits:
Object show all
Includes:
MockCalls
Defined in:
lib/gamebox/spec/helper.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (MockImage) initialize(filename, w, h)



285
286
287
288
289
290
# File 'lib/gamebox/spec/helper.rb', line 285

def initialize(filename, w, h)
  _reset!
  @filename = filename
  @width = w
  @height = h
end

Instance Attribute Details

- (Object) filename

Returns the value of attribute filename



284
285
286
# File 'lib/gamebox/spec/helper.rb', line 284

def filename
  @filename
end

- (Object) height

Returns the value of attribute height



284
285
286
# File 'lib/gamebox/spec/helper.rb', line 284

def height
  @height
end

- (Object) width

Returns the value of attribute width



284
285
286
# File 'lib/gamebox/spec/helper.rb', line 284

def width
  @width
end