Module: Pa::ClassMethods
- Included in:
- Pa
- Defined in:
- lib/tagen/core/pa.rb
Defined Under Namespace
Modules: Cmd, Dir, Path, State
Constant Summary collapse
- UNDEFS =
[:open, :fstat]
Instance Method Summary collapse
-
#method_missing(name, *args, &blk) ⇒ Object
missing method goes to File class method.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &blk) ⇒ Object
missing method goes to File class method
131 132 133 134 135 |
# File 'lib/tagen/core/pa.rb', line 131 def method_missing name, *args, &blk raise NoMethodError, name.inspect if UNDEFS.include?(name) return if args.size>1 File.__send__ name, get(args[0]), &blk end |