lib/simple_assertions.rb in simple_assertions-0.2.0 vs lib/simple_assertions.rb in simple_assertions-0.2.1
- old
+ new
@@ -1,6 +1,11 @@
module SimpleAssertions
autoload :AssertErrorsOn, 'simple_assertions/assert_errors_on'
autoload :AssertRaises, 'simple_assertions/assert_raises'
autoload :VERSION, 'simple_assertions/version'
+
+ def self.all
+ mods = constants - [ :VERSION ]
+ mods.map { |mod| const_get(mod) }
+ end
end