Class: MysqlImport::Result
- Inherits:
-
Object
- Object
- MysqlImport::Result
- Defined in:
- lib/mysql_import.rb
Instance Method Summary collapse
Instance Method Details
#add(meth, res) ⇒ Object
97 98 99 |
# File 'lib/mysql_import.rb', line 97 def add(meth, res) mutex.synchronize { __send__(meth).push(res) } end |
#clear ⇒ Object
101 102 103 104 |
# File 'lib/mysql_import.rb', line 101 def clear imported.clear skipped.clear end |
#imported ⇒ Object
85 86 87 |
# File 'lib/mysql_import.rb', line 85 def imported @imported ||= [] end |
#mutex ⇒ Object
93 94 95 |
# File 'lib/mysql_import.rb', line 93 def mutex @mutext ||= Mutex.new end |
#skipped ⇒ Object
89 90 91 |
# File 'lib/mysql_import.rb', line 89 def skipped @skipped ||= [] end |