Class: RD::Filter
- Inherits:
-
Object
- Object
- RD::Filter
- Defined in:
- lib/rd/filter.rb
Defined Under Namespace
Modules: FileInclude
Instance Attribute Summary collapse
-
#mode ⇒ Object
Returns the value of attribute mode.
Instance Method Summary collapse
-
#call(inn) ⇒ Object
inn, out: RD::Part.
-
#initialize(mode = :target, &block) ⇒ Filter
constructor
A new instance of Filter.
Constructor Details
#initialize(mode = :target, &block) ⇒ Filter
Returns a new instance of Filter.
10 11 12 13 |
# File 'lib/rd/filter.rb', line 10 def initialize(mode = :target, &block) @mode = mode @block = block end |
Instance Attribute Details
#mode ⇒ Object
Returns the value of attribute mode.
8 9 10 |
# File 'lib/rd/filter.rb', line 8 def mode @mode end |