lib/looksee.rb in oggy-looksee-0.1.0 vs lib/looksee.rb in oggy-looksee-0.2.0

- old
+ new

@@ -44,10 +44,14 @@ # If you're being namespace-clean, you'll need to do: # # require 'looksee' # Looksee.lookup_path(thing) # like "lp thing" # +# For a quick reference: +# +# Looksee.help +# # == Configuration # # Set these: # # Looksee.default_lookup_path_options @@ -114,16 +118,16 @@ # "%s", which is where the name is inserted. # # Default: # # { - # :module => "\e[1;37m%s\e[0m", - # :public => "\e[1;32m%s\e[0m", - # :protected => "\e[1;33m%s\e[0m", - # :private => "\e[1;31m%s\e[0m", - # :undefined => "\e[1;34m%s\e[0m", - # :overridden => "\e[1;30m%s\e[0m", + # :module => "\e[1;37m%s\e[0m", # white + # :public => "\e[1;32m%s\e[0m", # green + # :protected => "\e[1;33m%s\e[0m", # yellow + # :private => "\e[1;31m%s\e[0m", # red + # :undefined => "\e[1;34m%s\e[0m", # blue + # :overridden => "\e[1;30m%s\e[0m", # black # } # attr_accessor :styles # @@ -142,15 +146,15 @@ end self.default_lookup_path_options = {:public => true, :protected => true, :undefined => true, :overridden => true} self.default_width = 80 self.styles = { - :module => "\e[1;37m%s\e[0m", - :public => "\e[1;32m%s\e[0m", - :protected => "\e[1;33m%s\e[0m", - :private => "\e[1;31m%s\e[0m", - :undefined => "\e[1;34m%s\e[0m", - :overridden => "\e[1;30m%s\e[0m", + :module => "\e[1;37m%s\e[0m", # white + :public => "\e[1;32m%s\e[0m", # green + :protected => "\e[1;33m%s\e[0m", # yellow + :private => "\e[1;31m%s\e[0m", # red + :undefined => "\e[1;34m%s\e[0m", # blue + :overridden => "\e[1;30m%s\e[0m", # black } class LookupPath attr_reader :entries