lib/core/facets/kernel.rb in facets-2.9.2 vs lib/core/facets/kernel.rb in facets-2.9.3
- old
+ new
@@ -1,142 +1,79 @@
-# Load all Kernel core extensions.
+require 'facets/kernel/require_relative'
-if RUBY_VERSION < '1.9'
- require "facets/kernel/__callee__.rb"
- require "facets/kernel/__class__.rb"
- require "facets/kernel/__dir__.rb"
- require "facets/kernel/__get__.rb"
- require "facets/kernel/__method__.rb"
- require "facets/kernel/__set__.rb"
- require "facets/kernel/as.rb"
- require "facets/kernel/ask.rb"
- require "facets/kernel/assign.rb"
- require "facets/kernel/assign_from.rb"
- require "facets/kernel/attr_singleton.rb"
- require "facets/kernel/blank.rb"
- require "facets/kernel/call_stack.rb"
- require "facets/kernel/callstack.rb"
- require "facets/kernel/case.rb"
- require "facets/kernel/complete.rb"
- require "facets/kernel/constant.rb"
- require "facets/kernel/d.rb"
- require "facets/kernel/deep_clone.rb"
- require "facets/kernel/deep_copy.rb"
- require "facets/kernel/disable_warnings.rb"
- require "facets/kernel/enable_warnings.rb"
- require "facets/kernel/equate.rb"
- require "facets/kernel/ergo.rb"
- require "facets/kernel/extend.rb"
- require "facets/kernel/extension.rb"
- require "facets/kernel/false.rb"
- require "facets/kernel/here.rb"
- require "facets/kernel/identical.rb"
- require "facets/kernel/in.rb"
- require "facets/kernel/instance_assign.rb"
- require "facets/kernel/instance_class.rb"
- require "facets/kernel/instance_send.rb"
- require "facets/kernel/load_all.rb"
- require "facets/kernel/load_relative.rb"
- require "facets/kernel/maybe.rb"
- require "facets/kernel/meta_alias.rb"
- require "facets/kernel/meta_class.rb"
- require "facets/kernel/meta_def.rb"
- require "facets/kernel/meta_eval.rb"
- require "facets/kernel/method.rb"
- require "facets/kernel/no.rb"
- require "facets/kernel/not.rb"
- require "facets/kernel/not_nil.rb"
- require "facets/kernel/object_class.rb"
- require "facets/kernel/object_hexid.rb"
- require "facets/kernel/object_send.rb"
- require "facets/kernel/p.rb"
- require "facets/kernel/presence.rb"
- require "facets/kernel/present.rb"
- require "facets/kernel/qua_class.rb"
- require "facets/kernel/require_all.rb"
- require "facets/kernel/require_relative.rb"
- require "facets/kernel/respond.rb"
- require "facets/kernel/returning.rb"
- require "facets/kernel/silence.rb"
- require "facets/kernel/silence_warnings.rb"
- require "facets/kernel/singleton_class.rb"
- require "facets/kernel/source_location.rb"
- require "facets/kernel/super_method.rb"
- require "facets/kernel/tap.rb"
- require "facets/kernel/temporarily.rb"
- require "facets/kernel/true.rb"
- require "facets/kernel/try.rb"
- require "facets/kernel/val.rb"
- require "facets/kernel/with.rb"
- require "facets/kernel/writers.rb"
- require "facets/kernel/yes.rb"
-else
- require_relative "kernel/__callee__.rb"
- require_relative "kernel/__class__.rb"
- require_relative "kernel/__dir__.rb"
- require_relative "kernel/__get__.rb"
- require_relative "kernel/__method__.rb"
- require_relative "kernel/__set__.rb"
- require_relative "kernel/as.rb"
- require_relative "kernel/ask.rb"
- require_relative "kernel/assign.rb"
- require_relative "kernel/assign_from.rb"
- require_relative "kernel/attr_singleton.rb"
- require_relative "kernel/blank.rb"
- require_relative "kernel/call_stack.rb"
- require_relative "kernel/callstack.rb"
- require_relative "kernel/case.rb"
- require_relative "kernel/complete.rb"
- require_relative "kernel/constant.rb"
- require_relative "kernel/d.rb"
- require_relative "kernel/deep_clone.rb"
- require_relative "kernel/deep_copy.rb"
- require_relative "kernel/disable_warnings.rb"
- require_relative "kernel/enable_warnings.rb"
- require_relative "kernel/equate.rb"
- require_relative "kernel/ergo.rb"
- require_relative "kernel/extend.rb"
- require_relative "kernel/extension.rb"
- require_relative "kernel/false.rb"
- require_relative "kernel/here.rb"
- require_relative "kernel/identical.rb"
- require_relative "kernel/in.rb"
- require_relative "kernel/instance_assign.rb"
- require_relative "kernel/instance_class.rb"
- require_relative "kernel/instance_send.rb"
- require_relative "kernel/load_all.rb"
- require_relative "kernel/load_relative.rb"
- require_relative "kernel/maybe.rb"
- require_relative "kernel/meta_alias.rb"
- require_relative "kernel/meta_class.rb"
- require_relative "kernel/meta_def.rb"
- require_relative "kernel/meta_eval.rb"
- require_relative "kernel/method.rb"
- require_relative "kernel/no.rb"
- require_relative "kernel/not.rb"
- require_relative "kernel/not_nil.rb"
- require_relative "kernel/object_class.rb"
- require_relative "kernel/object_hexid.rb"
- require_relative "kernel/object_send.rb"
- require_relative "kernel/p.rb"
- require_relative "kernel/presence.rb"
- require_relative "kernel/present.rb"
- require_relative "kernel/qua_class.rb"
- require_relative "kernel/require_all.rb"
- require_relative "kernel/require_relative.rb"
- require_relative "kernel/respond.rb"
- require_relative "kernel/returning.rb"
- require_relative "kernel/silence.rb"
- require_relative "kernel/silence_warnings.rb"
- require_relative "kernel/singleton_class.rb"
- require_relative "kernel/source_location.rb"
- require_relative "kernel/super_method.rb"
- require_relative "kernel/tap.rb"
- require_relative "kernel/temporarily.rb"
- require_relative "kernel/true.rb"
- require_relative "kernel/try.rb"
- require_relative "kernel/val.rb"
- require_relative "kernel/with.rb"
- require_relative "kernel/writers.rb"
- require_relative "kernel/yes.rb"
-end
+require_relative 'kernel/as.rb'
+require_relative 'kernel/ask.rb'
+require_relative 'kernel/assign.rb'
+require_relative 'kernel/assign_from.rb'
+require_relative 'kernel/attr_singleton.rb'
+require_relative 'kernel/blank.rb'
+require_relative 'kernel/callstack.rb'
+require_relative 'kernel/call_stack.rb'
+require_relative 'kernel/case.rb'
+require_relative 'kernel/complete.rb'
+require_relative 'kernel/constant.rb'
+require_relative 'kernel/d.rb'
+require_relative 'kernel/deep_clone.rb'
+require_relative 'kernel/deep_copy.rb'
+#require_relative 'kernel/demo.rb' # uncommon
+require_relative 'kernel/disable_warnings.rb'
+require_relative 'kernel/eigen.rb'
+#require_relative 'kernel/eigenclass.rb' # uncommon
+require_relative 'kernel/enable_warnings.rb'
+require_relative 'kernel/equate.rb'
+require_relative 'kernel/ergo.rb'
+require_relative 'kernel/extend.rb'
+require_relative 'kernel/extension.rb'
+require_relative 'kernel/false.rb'
+require_relative 'kernel/here.rb'
+#require_relative 'kernel/hierarchical_send' # uncommon
+require_relative 'kernel/identical.rb'
+require_relative 'kernel/in.rb'
+require_relative 'kernel/instance_assign.rb'
+require_relative 'kernel/instance_class.rb'
+#require_relative 'kernel/instance_exec.rb' # uncommon
+require_relative 'kernel/instance_send.rb'
+require_relative 'kernel/load_all.rb'
+require_relative 'kernel/load_relative.rb'
+require_relative 'kernel/maybe.rb'
+#require_relative 'kernel/memo.rb' # uncommon
+require_relative 'kernel/meta_alias.rb'
+require_relative 'kernel/meta_class.rb'
+require_relative 'kernel/meta_def.rb'
+require_relative 'kernel/meta_eval.rb'
+require_relative 'kernel/method.rb'
+require_relative 'kernel/no.rb'
+require_relative 'kernel/not.rb'
+require_relative 'kernel/not_nil.rb'
+require_relative 'kernel/object_class.rb'
+require_relative 'kernel/object_hexid.rb'
+require_relative 'kernel/object_send.rb'
+require_relative 'kernel/p.rb'
+require_relative 'kernel/presence.rb'
+require_relative 'kernel/present.rb'
+require_relative 'kernel/qua_class.rb'
+require_relative 'kernel/require_all.rb'
+require_relative 'kernel/require_relative.rb'
+require_relative 'kernel/respond.rb'
+require_relative 'kernel/returning.rb'
+require_relative 'kernel/silence.rb'
+require_relative 'kernel/silence_warnings.rb'
+require_relative 'kernel/singleton_class.rb'
+require_relative 'kernel/source_location.rb'
+require_relative 'kernel/super_method.rb'
+require_relative 'kernel/tap.rb'
+require_relative 'kernel/temporarily.rb'
+#require_relative 'kernel/trap_chain.rb' # uncommon
+require_relative 'kernel/true.rb'
+require_relative 'kernel/try.rb'
+require_relative 'kernel/val.rb'
+require_relative 'kernel/with.rb'
+require_relative 'kernel/writers.rb'
+#require_relative 'kernel/y.rb' # uncommon
+require_relative 'kernel/yes.rb'
+require_relative 'kernel/__callee__.rb'
+require_relative 'kernel/__class__.rb'
+require_relative 'kernel/__dir__.rb'
+require_relative 'kernel/__get__.rb'
+require_relative 'kernel/__method__.rb'
+require_relative 'kernel/__set__.rb'