Class: Rose::Attribute::Filter
- Inherits:
-
Indirect
- Object
- Rose::Attribute
- Indirect
- Rose::Attribute::Filter
- Defined in:
- lib/rose/attribute.rb
Overview
This class defines an Indirect Attribute for rejecting table rows
Instance Attribute Summary
Attributes inherited from Indirect
Attributes inherited from Rose::Attribute
Instance Method Summary collapse
Methods inherited from Indirect
Methods inherited from Rose::Attribute
Constructor Details
This class inherits a constructor from Rose::Attribute::Indirect
Instance Method Details
#on(table) ⇒ Object
87 88 89 90 |
# File 'lib/rose/attribute.rb', line 87 def on(table) table.data.reject! { |record| !@value_block.call(record) } table end |