Class: SqlPatches
- Inherits:
-
Object
- Object
- SqlPatches
- Defined in:
- lib/patches/sql_patches.rb
Class Method Summary collapse
- .class_exists?(name) ⇒ Boolean
- .module_exists?(name) ⇒ Boolean
- .patched=(val) ⇒ Object
- .patched? ⇒ Boolean
Class Method Details
.class_exists?(name) ⇒ Boolean
11 12 13 14 15 |
# File 'lib/patches/sql_patches.rb', line 11 def self.class_exists?(name) eval(name + ".class").to_s.eql?('Class') rescue NameError false end |
.module_exists?(name) ⇒ Boolean
17 18 19 20 21 |
# File 'lib/patches/sql_patches.rb', line 17 def self.module_exists?(name) eval(name + ".class").to_s.eql?('Module') rescue NameError false end |
.patched=(val) ⇒ Object
7 8 9 |
# File 'lib/patches/sql_patches.rb', line 7 def self.patched=(val) @patched = val end |
.patched? ⇒ Boolean
3 4 5 |
# File 'lib/patches/sql_patches.rb', line 3 def self.patched? @patched end |