Exception: VirtualMethodCalledError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/bulldog_physics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ VirtualMethodCalledError

Returns a new instance of VirtualMethodCalledError.



8
9
10
11
# File 'lib/bulldog_physics.rb', line 8

def initialize(name)
	super("Virtual function '#{name}' called")
	@name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/bulldog_physics.rb', line 7

def name
  @name
end