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.



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

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end