module Softcover::Output
Attributes
silent[RW]
stream[RW]
verbosity_level[RW]
Public Class Methods
should_output?(level)
click to toggle source
# File lib/softcover/output.rb, line 21 def should_output?(level) !silent? || !(level && defined?(@verbosity_level) && level < @verbosity_level) end
silence!()
click to toggle source
# File lib/softcover/output.rb, line 9 def silence! @silent = true end
silent?()
click to toggle source
# File lib/softcover/output.rb, line 17 def silent? defined?(@silent) && @silent end
unsilence!()
click to toggle source
# File lib/softcover/output.rb, line 13 def unsilence! @silent = false end
Public Instance Methods
system(cmd)
click to toggle source
# File lib/softcover/output.rb, line 35 def system(cmd) output = `#{cmd}` puts output end