Module: CsvFind::InstanceMethods
- Defined in:
- lib/csv_find/csv_find.rb
Instance Attribute Summary collapse
-
#line_number ⇒ Object
Returns the value of attribute line_number.
Instance Method Summary collapse
Instance Attribute Details
#line_number ⇒ Object
Returns the value of attribute line_number.
16 17 18 |
# File 'lib/csv_find/csv_find.rb', line 16 def line_number @line_number end |
Instance Method Details
#==(other_instance) ⇒ Object
22 23 24 25 26 27 |
# File 'lib/csv_find/csv_find.rb', line 22 def ==(other_instance) instance_variables.map do |instance_variable| instance_variable_get(instance_variable) == other_instance.instance_variable_get(instance_variable) end end |
#initialize(hash = {}) ⇒ Object
18 19 20 |
# File 'lib/csv_find/csv_find.rb', line 18 def initialize(hash = {}) hash.each { |k,v| send("#{k}=".to_sym, v) } end |