Class: MessageDir::Path
- Inherits:
-
Object
- Object
- MessageDir::Path
- Defined in:
- lib/message_dir.rb
Instance Method Summary collapse
-
#initialize(root) ⇒ Path
constructor
A new instance of Path.
- #method_missing(method, *args, &block) ⇒ Object
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
105 106 107 108 109 110 111 |
# File 'lib/message_dir.rb', line 105 def method_missing(method, *args, &block) super rescue NoMethodError => e if [ :new, :cur, :tmp ].include?(method) return File.join(@root, method.to_s) end end |