Class: Txdb::Config
- Inherits:
-
Object
- Object
- Txdb::Config
- Defined in:
- lib/txdb/config.rb
Class Method Summary collapse
Class Method Details
.databases ⇒ Object
6 7 8 9 10 |
# File 'lib/txdb/config.rb', line 6 def databases @databases ||= raw_config[:databases].map do |database_config| Database.new(database_config) end end |
.each_table(&block) ⇒ Object
12 13 14 15 |
# File 'lib/txdb/config.rb', line 12 def each_table(&block) return to_enum(__method__) unless block_given? databases.each { |database| database.tables.each(&block) } end |