class Richcss::RichUI
Public Instance Methods
after_resolution()
click to toggle source
# File lib/richcss/richcss_ui.rb, line 27 def after_resolution puts "" end
before_resolution()
click to toggle source
# File lib/richcss/richcss_ui.rb, line 22 def before_resolution STDOUT.print "Resolving dependencies..." STDOUT.flush end
debug(depth = 0) { || ... }
click to toggle source
Conveys debug information to the user.
@param [Integer] depth the current depth of the resolution process. @return [void]
# File lib/richcss/richcss_ui.rb, line 10 def debug(depth = 0) if debug? debug_info = yield debug_info = debug_info.inspect unless debug_info.is_a?(String) STDERR.puts debug_info.split("\n").map {|s| " " * depth + s } end end
debug?()
click to toggle source
# File lib/richcss/richcss_ui.rb, line 18 def debug? ENV["DEBUG_RESOLVER"] || ENV["DEBUG_RESOLVER_TREE"] end
indicate_progress()
click to toggle source
# File lib/richcss/richcss_ui.rb, line 31 def indicate_progress STDOUT.print "." STDOUT.flush end