Module: CsvFind::InstanceMethods

Defined in:
lib/csv_find/csv_find.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#line_numberObject

Returns the value of attribute line_number.



20
21
22
# File 'lib/csv_find/csv_find.rb', line 20

def line_number
  @line_number
end

Instance Method Details

#==(other) ⇒ Object



26
27
28
29
30
31
# File 'lib/csv_find/csv_find.rb', line 26

def ==(other)
  instance_variables.map do |instance_variable|
    instance_variable_get(instance_variable) ==
      other.instance_variable_get(instance_variable)
  end
end

#initialize(hash = {}) ⇒ Object



22
23
24
# File 'lib/csv_find/csv_find.rb', line 22

def initialize(hash = {})
  hash.each { |k, v| send("#{k}=".to_sym, v) }
end