module EDB::IsModuleSupported
Public Instance Methods
supports?(dbms)
click to toggle source
# File lib/edb/is_module_supported.rb, line 27 def supports?(dbms) begin this_module = to_module(dbms) all_modules.include?(this_module) rescue NameError false end end
Private Instance Methods
all_modules()
click to toggle source
# File lib/edb/is_module_supported.rb, line 37 def all_modules constants.select { |c| const_get(c).is_a?(Module) }.map { |c| const_get(c) } end