Class: MockImage
- Includes:
- MockCalls
- Defined in:
- lib/gamebox/spec/helper.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(filename, w, h) ⇒ MockImage
constructor
A new instance of MockImage.
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
#filename ⇒ Object
Returns the value of attribute filename.
284 285 286 |
# File 'lib/gamebox/spec/helper.rb', line 284 def filename @filename end |
#height ⇒ Object
Returns the value of attribute height.
284 285 286 |
# File 'lib/gamebox/spec/helper.rb', line 284 def height @height end |
#width ⇒ Object
Returns the value of attribute width.
284 285 286 |
# File 'lib/gamebox/spec/helper.rb', line 284 def width @width end |