Exception: GameServer::ServerError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- GameServer::ServerError
- Defined in:
- lib/server_error.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, comment = "") ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(name, comment = "") ⇒ ServerError
Returns a new instance of ServerError.
3 4 5 6 7 |
# File 'lib/server_error.rb', line 3 def initialize(name, comment = "") self.name = name self.comment = comment super(name) end |
Instance Attribute Details
#comment ⇒ Object
Returns the value of attribute comment.
2 3 4 |
# File 'lib/server_error.rb', line 2 def comment @comment end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/server_error.rb', line 2 def name @name end |