Class: Monster::Remote::NameBasedFilter
- Defined in:
- lib/monster/remote/filters/name_based_filter.rb
Instance Method Summary collapse
Instance Method Details
#filter(directory) ⇒ Object
19 20 21 22 |
# File 'lib/monster/remote/filters/name_based_filter.rb', line 19 def filter(directory) dir_structure = become_array(directory) super(dir_structure) end |
#reject(reject_logic) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/monster/remote/filters/name_based_filter.rb', line 8 def reject(reject_logic) if reject_logic.respond_to? :call super(reject_logic) else become_block(reject_logic).each do |rejection| super(rejection) end end self end |