lib/java_head.rb
def const_missing(const_name)
      require "#{__dir__}/java_head/#{const_name.to_s.downcase}.rb"
      return const_get const_name
    rescue LoadError
      super
    end
# Try to load the file const_name if the constant cannot be found
#
# @param [String] const_name
# @return [Regexp,Array,Class] the value of the constant const_name in the namespace of JavaHead
Try to load the file const_name if the constant cannot be found
Try to load the file const_name if the constant cannot be found
def const_missing(const_name)
      require "#{__dir__}/java_head/#{const_name.to_s.downcase}.rb"
      return const_get const_name
    rescue LoadError
      super
    end
def const_missing ( const_name ) require "#{__dir__}/java_head/#{const_name.to_s.downcase}.rb" return const_get const_name rescue LoadError super end
Try to load the file const_name if the constant cannot be found
Try to load the file const_name if the constant cannot be found
the value of the constant const_name in the namespace of JavaHead
the value of the constant const_name in the namespace of JavaHead
Regexp,Array,Class
const_name
None