Class: MockFont
- Includes:
- MockCalls
- Defined in:
- lib/gamebox/spec/helper.rb
Instance Attribute Summary collapse
-
#calls ⇒ Object
Returns the value of attribute calls.
-
#name ⇒ Object
Returns the value of attribute name.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
- #height ⇒ Object
-
#initialize(name, size) ⇒ MockFont
constructor
A new instance of MockFont.
- #text_width(text) ⇒ Object
Constructor Details
#initialize(name, size) ⇒ MockFont
Returns a new instance of MockFont.
296 297 298 299 300 |
# File 'lib/gamebox/spec/helper.rb', line 296 def initialize(name, size) _reset! @name = name @size = size end |
Instance Attribute Details
#calls ⇒ Object
Returns the value of attribute calls.
294 295 296 |
# File 'lib/gamebox/spec/helper.rb', line 294 def calls @calls end |
#name ⇒ Object
Returns the value of attribute name.
294 295 296 |
# File 'lib/gamebox/spec/helper.rb', line 294 def name @name end |
#size ⇒ Object
Returns the value of attribute size.
294 295 296 |
# File 'lib/gamebox/spec/helper.rb', line 294 def size @size end |