Class: Hud::Display
- Inherits:
-
Object
- Object
- Hud::Display
- Defined in:
- lib/hud.rb
Defined Under Namespace
Modules: Helpers Classes: Component, Screen
Class Method Summary collapse
Class Method Details
.build(name) ⇒ Object
96 97 98 99 100 101 |
# File 'lib/hud.rb', line 96 def self.build(name) symbol = name.to_sym class_name = symbol.to_s.capitalize Object.const_set(class_name, Class.new(Component)) unless Object.const_defined?(class_name) Object.const_get(class_name) end |