Class: PgShrink::TableFilter
- Inherits:
-
Object
- Object
- PgShrink::TableFilter
- Defined in:
- lib/pg_shrink/table_filter.rb
Instance Attribute Summary collapse
-
#opts ⇒ Object
Returns the value of attribute opts.
-
#table ⇒ Object
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(table, opts = nil, &block) ⇒ TableFilter
constructor
A new instance of TableFilter.
Constructor Details
#initialize(table, opts = nil, &block) ⇒ TableFilter
Returns a new instance of TableFilter.
4 5 6 7 8 |
# File 'lib/pg_shrink/table_filter.rb', line 4 def initialize(table, opts = nil, &block) self.table = table @opts = opts @block = block if block_given? end |
Instance Attribute Details
#opts ⇒ Object
Returns the value of attribute opts.
3 4 5 |
# File 'lib/pg_shrink/table_filter.rb', line 3 def opts @opts end |
#table ⇒ Object
Returns the value of attribute table.
3 4 5 |
# File 'lib/pg_shrink/table_filter.rb', line 3 def table @table end |