Module: CsvClassMaker::CsvFind::InstanceMethods
- Defined in:
- lib/csv_class_maker/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.
8 9 10 |
# File 'lib/csv_class_maker/csv_find.rb', line 8 def line_number @line_number end |
Instance Method Details
#==(other_instance) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/csv_class_maker/csv_find.rb', line 16 def ==(other_instance) instance_variables.map do |instance_variable| self.instance_variable_get(instance_variable) == other_instance.instance_variable_get(instance_variable) end end |
#initialize(hash = nil) ⇒ Object
10 11 12 13 14 |
# File 'lib/csv_class_maker/csv_find.rb', line 10 def initialize(hash = nil) if hash hash.each { |k,v| send("#{k}=".to_sym, v) } end end |