Module: JavaSymbols::Methods
- 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
8
9
10
11
12
13
|
# File 'lib/java_symbols.rb', line 8
def method_missing(name, *args)
if self.class.const_defined?(name) then
return self.class.const_get(name)
end
old_method_missing(name, args)
end
|
Instance Method Details
#old_method_missing ⇒ Object
7
|
# File 'lib/java_symbols.rb', line 7
alias_method :old_method_missing, :method_missing
|