Method: RGSS.process

Defined in:
lib/RGSS.rb

.process(root, name, *args) ⇒ Object

creates an empty class in a potentially nested scope



164
165
166
167
168
169
170
# File 'lib/RGSS.rb', line 164

def self.process(root, name, *args)
  if args.length > 0
    process(root.const_get(name), *args)
  else
    root.const_set(name, Class.new) unless root.const_defined?(name, false)
  end
end