Class: Module

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

Instance Method Summary collapse

Instance Method Details

#virtual(*methods) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/bulldog_physics.rb', line 14

def virtual(*methods)
	methods.each do |m|
		define_method(m) {
			raise VirtualMethodCalledError, m
		}
	end
end