aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/utils.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-02-05 00:27:47 -0500
committerRalph Amissah <ralph@amissah.com>2014-02-05 00:27:47 -0500
commitbd5e94912c594372eca319e75e15c364b7e124ea (patch)
treef18f7aec63b42bb9062a22ac000d197a241d1536 /lib/sisu/v5/utils.rb
parentv5 v6: html, cleaning, minor (diff)
v5 v6: wrappers round require
Diffstat (limited to 'lib/sisu/v5/utils.rb')
-rw-r--r--lib/sisu/v5/utils.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sisu/v5/utils.rb b/lib/sisu/v5/utils.rb
index 97ca24be..1c04d886 100644
--- a/lib/sisu/v5/utils.rb
+++ b/lib/sisu/v5/utils.rb
@@ -127,6 +127,12 @@ module SiSU_Utils
def mark(v=nil,x=nil)
puts set(v,x)
end
+ def warn(v=nil,x=nil)
+ STDERR.puts set(v,'*WARN* ' + x)
+ end
+ def error(v=nil,x=nil)
+ STDERR.puts set(v,'*ERROR* ' + x)
+ end
end
class Path
def initialize(dir=Dir.pwd)