Class: Cure::Extract::Filter::RowHandler
- Inherits:
-
Object
- Object
- Cure::Extract::Filter::RowHandler
- Defined in:
- lib/cure/extract/filter.rb
Instance Attribute Summary collapse
-
#finish_proc ⇒ Object
Returns the value of attribute finish_proc.
-
#including_proc ⇒ Object
Returns the value of attribute including_proc.
-
#start_proc ⇒ Object
Returns the value of attribute start_proc.
Instance Method Summary collapse
- #finish(where:, options: {}) ⇒ Object
- #has_content? ⇒ TrueClass, FalseClass
- #including(where:, options: {}) ⇒ Object
- #start(where:, options: {}) ⇒ Object
Instance Attribute Details
#finish_proc ⇒ Object
Returns the value of attribute finish_proc.
85 86 87 |
# File 'lib/cure/extract/filter.rb', line 85 def finish_proc @finish_proc end |
#including_proc ⇒ Object
Returns the value of attribute including_proc.
85 86 87 |
# File 'lib/cure/extract/filter.rb', line 85 def including_proc @including_proc end |
#start_proc ⇒ Object
Returns the value of attribute start_proc.
85 86 87 |
# File 'lib/cure/extract/filter.rb', line 85 def start_proc @start_proc end |
Instance Method Details
#finish(where:, options: {}) ⇒ Object
97 98 99 100 101 |
# File 'lib/cure/extract/filter.rb', line 97 def finish(where:, options: {}) @finish_proc = {where:, options:} self end |
#has_content? ⇒ TrueClass, FalseClass
112 113 114 |
# File 'lib/cure/extract/filter.rb', line 112 def has_content? !!(@start_proc || @finish_proc || @including_proc) end |
#including(where:, options: {}) ⇒ Object
105 106 107 108 109 |
# File 'lib/cure/extract/filter.rb', line 105 def including(where:, options: {}) @including_proc = {where:, options:} self end |
#start(where:, options: {}) ⇒ Object
89 90 91 92 93 |
# File 'lib/cure/extract/filter.rb', line 89 def start(where:, options: {}) @start_proc = {where:, options:} self end |