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

#initialize(filename, w, h) ⇒ MockImage

Returns a new instance of MockImage.



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

#filenameObject

Returns the value of attribute filename.



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

def filename
  @filename
end

#heightObject

Returns the value of attribute height.



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

def height
  @height
end

#widthObject

Returns the value of attribute width.



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

def width
  @width
end