Class: MockImage
- Inherits:
-
Object
- Object
- MockImage
- Includes:
- MockCalls
- Defined in:
- lib/gamebox/spec/helper.rb
Instance Attribute Summary (collapse)
-
- (Object) filename
Returns the value of attribute filename.
-
- (Object) height
Returns the value of attribute height.
-
- (Object) width
Returns the value of attribute width.
Instance Method Summary (collapse)
-
- (MockImage) initialize(filename, w, h)
constructor
A new instance of MockImage.
Constructor Details
- (MockImage) initialize(filename, w, h)
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
- (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 |