Class: JBundler::Executable::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/jbundler/executable.rb

Instance Method Summary collapse

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