class IRB::ExtendCommand::ShowSource
def show_source(source)
-
source
(IRB::ExtendCommand::ShowSource::Source
) --
def show_source(source) puts puts "#{bold("From")}: #{source.file}:#{source.first_line}" puts code = IRB::Color.colorize_code(File.read(source.file)) puts code.lines[(source.first_line - 1)...source.last_line].join puts end