Exception: VirtualMethodCalledError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- VirtualMethodCalledError
- Defined in:
- lib/bulldog_physics.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ VirtualMethodCalledError
constructor
A new instance of VirtualMethodCalledError.
Constructor Details
#initialize(name) ⇒ VirtualMethodCalledError
Returns a new instance of VirtualMethodCalledError.
7 8 9 10 |
# File 'lib/bulldog_physics.rb', line 7 def initialize(name) super("Virtual function '#{name}' called") @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/bulldog_physics.rb', line 6 def name @name end |