Class: Cure::Extract::Filter::RowHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/cure/extract/filter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#finish_procObject

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_procObject

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_procObject

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

Parameters:

  • where (String)
  • options (Hash) (defaults to: {})


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

Returns:

  • (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

Parameters:

  • where (String)
  • options (Hash) (defaults to: {})


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

Parameters:

  • where (String)
  • options (Hash) (defaults to: {})


89
90
91
92
93
# File 'lib/cure/extract/filter.rb', line 89

def start(where:, options: {})
  @start_proc = {where:, options:}

  self
end