Exception: Smalruby3::ExistSprite
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Smalruby3::ExistSprite
- Defined in:
- lib/smalruby3/exceptions.rb
Instance Attribute Summary collapse
-
#sprite ⇒ Object
Returns the value of attribute sprite.
Instance Method Summary collapse
-
#initialize(sprite) ⇒ ExistSprite
constructor
A new instance of ExistSprite.
Constructor Details
#initialize(sprite) ⇒ ExistSprite
Returns a new instance of ExistSprite.
14 15 16 17 |
# File 'lib/smalruby3/exceptions.rb', line 14 def initialize(sprite) @sprite = sprite super("already exist sprite: #{sprite.name}") end |
Instance Attribute Details
#sprite ⇒ Object
Returns the value of attribute sprite.
12 13 14 |
# File 'lib/smalruby3/exceptions.rb', line 12 def sprite @sprite end |