Class: Superterm::Gui

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

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object



2
3
4
5
6
# File 'lib/superterm_gui.rb', line 2

def self.const_missing(name)
  require "#{File.dirname(__FILE__)}/../gui/#{name.to_s.downcase}.rb"
  raise "Still not defined: '#{name}'." if !Superterm::Gui.const_defined?(name)
  return Superterm::Gui.const_get(name)
end