Module: JavaSymbols::ClassMethods

Defined in:
lib/java_symbols.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



17
18
19
20
21
22
# File 'lib/java_symbols.rb', line 17

def method_missing(name, *args)
  if const_defined?(name) then
    return const_get(name)
  end
  old_method_missing(name, args)
end

Instance Method Details

#old_method_missingObject



16
# File 'lib/java_symbols.rb', line 16

alias_method :old_method_missing, :method_missing