Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
method_missing « Reflection « Ruby
Ruby
Reflection
method_missing
1.
Convert all system command to all class method
2.
Responding to Calls to Undefined Methods
3.
Override method_missing method to provide meaningful error message
4.
Create a new class and override the method_missing method
5.
If method does not exist, call the default one
6.
Create new method dynamically