module SuperAwesomePrint
Constants
- VERSION
Attributes
configuration[W]
Public Class Methods
blank_lines_bottom()
click to toggle source
# File lib/super_awesome_print.rb, line 56 def self.blank_lines_bottom config.blank_lines_bottom.times { puts } end
blank_lines_top()
click to toggle source
# File lib/super_awesome_print.rb, line 49 def self.blank_lines_top # The first puts has no visible effect # So we want to puts once regardless of config puts config.blank_lines_top.times { puts } end
config()
click to toggle source
# File lib/super_awesome_print.rb, line 60 def self.config SuperAwesomePrint.configuration end
configuration()
click to toggle source
# File lib/super_awesome_print.rb, line 64 def self.configuration @configuration ||= Configuration.new end
configure() { |configuration| ... }
click to toggle source
# File lib/super_awesome_print.rb, line 68 def self.configure yield configuration end
print_caller_lines(caller_array)
click to toggle source
# File lib/super_awesome_print.rb, line 41 def self.print_caller_lines(caller_array) number_of_lines = config.caller_lines lines = caller_array[0...number_of_lines].map do |line| line.gsub(config.root_path + '/', '') end lines.each { |line| ap line, :color => { :string => :purpleish } } end