lib/helpers.rb in encbs-0.2.4 vs lib/helpers.rb in encbs-0.2.4.1
- old
+ new
@@ -1,4 +1,20 @@
+require 'formatador'
+
+class Formatador
+ def display_line string = ''
+ super string if $PRINT_VERBOSE
+ end
+
+ def display string = ''
+ super string if $PRINT_VERBOSE
+ end
+
+ def display_lines lines = []
+ super lines if $PRINT_VERBOSE
+ end
+end
+
def puts_fail(msg)
STDERR.puts "#{"Error! ".red}#{msg}"
exit msg.length
end