module Mutter
Constants
- ANSI
ANSI color & transform codes
If the value's an array, [0] is the start code and [1] is the end code. Colors all have the same reset code (39).
Public Class Methods
indenter(tab)
click to toggle source
# File lib/mutter.rb, line 42 def self.indenter tab Indenter.new tab end
new(*args)
click to toggle source
# File lib/mutter.rb, line 58 def self.new *args Mutterer.new(*args) end
process(*args)
click to toggle source
# File lib/mutter.rb, line 54 def self.process *args new.process *args end
say(*args)
click to toggle source
# File lib/mutter.rb, line 46 def self.say *args new.say *args end
stylize(*args)
click to toggle source
# File lib/mutter.rb, line 50 def self.stylize *args new.stylize *args end
Public Instance Methods
watch() { || ... }
click to toggle source
Utility function, to make a block interruptible
# File lib/mutter.rb, line 65 def watch begin yield rescue Interrupt puts exit 0 end end
Also aliased as: oo