Module: Media::Builder::Filter::Chain::InstanceMethods
- Defined in:
- lib/media/builder/filter/chain.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &blk) ⇒ Object
29
30
31
|
# File 'lib/media/builder/filter/chain.rb', line 29
def method_missing(method, *args, &blk)
@context && @context.send(method, *args, &blk)
end
|
Instance Method Details
#filter(name, &blk) ⇒ Object
25
26
27
|
# File 'lib/media/builder/filter/chain.rb', line 25
def filter(name, &blk)
filters << Media::Filter.extend(Filter).build(name, &blk)
end
|