Method: Webhookdb::Replicator._require_files
- Defined in:
- lib/webhookdb/replicator.rb
._require_files(dir) ⇒ Object
191 192 193 194 195 196 197 |
# File 'lib/webhookdb/replicator.rb', line 191 def _require_files(dir) splitter = "webhookdb/" + dir.to_s.rpartition("/").last dir.glob("*.rb").each do |path| base = path.basename.to_s[..-4] require("#{splitter}/#{base}") end end |