# File lib/main/base.rb, line 111 def create parent = Base, *a, &b Class.new parent do |child| child.parent = parent unless parent == Base parent.children.add child child.context do child.class_eval &b if b child.default_options! #child.wrap_run! unless child.const_defined?(:RUN) mode_definitions.each do |name, block| klass = create context do mode_name name.to_s module_eval &block if block end modes.add klass end end end end