lib/global.rb in runeblog-0.1.24 vs lib/global.rb in runeblog-0.1.25
- old
+ new
@@ -41,5 +41,16 @@
debug str
raise str
end
end
+def verify(hash)
+ hash.each_pair do |expr, msg|
+ puts "<< #{msg}" unless expr
+ end
+end
+
+def assure(hash) # really the same as verify for now...
+ hash.each_pair do |expr, msg|
+ puts "<< #{msg}" unless expr
+ end
+end