Module: Media::Builder::Filter::InstanceMethods
- Defined in:
- lib/media/builder/filter.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &blk) ⇒ Object
37
38
39
|
# File 'lib/media/builder/filter.rb', line 37
def method_missing(method, *args, &blk)
@context && @context.send(method, *args, &blk)
end
|
Instance Method Details
#argument(key, value = true) ⇒ Object
Also known as:
arg
32
33
34
|
# File 'lib/media/builder/filter.rb', line 32
def argument(key, value=true)
arguments << Media::Filter::Argument.new(key: key, value: value)
end
|
24
25
26
|
# File 'lib/media/builder/filter.rb', line 24
def input(name)
inputs << Media::Label.new(name: name)
end
|
#output(name) ⇒ Object
28
29
30
|
# File 'lib/media/builder/filter.rb', line 28
def output(name)
outputs << Media::Label.new(name: name)
end
|