Class: JBundler::Executable::Filter
- Inherits:
-
Object
- Object
- JBundler::Executable::Filter
- Defined in:
- lib/jbundler/executable.rb
Instance Method Summary collapse
-
#initialize(a) ⇒ Filter
constructor
A new instance of Filter.
- #method_missing(m, *args, &b) ⇒ Object
Constructor Details
#initialize(a) ⇒ Filter
Returns a new instance of Filter.
8 9 10 |
# File 'lib/jbundler/executable.rb', line 8 def initialize(a) @a = a end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &b) ⇒ Object
11 12 13 14 |
# File 'lib/jbundler/executable.rb', line 11 def method_missing(m, *args, &b) args[ 0 ].sub!(/^.* - /, '' ) @a.send(m,*args, &b) end |