Module: IRB::StartupMessage
- Defined in:
- lib/irb/startup_message.rb
Constant Summary collapse
- TIPS =
[ 'Type "help" for commands, "help <cmd>" for details', '"show_doc method" to view documentation', '"ls [object]" to see methods and properties', '"ls [object] -g pattern" to filter methods and properties', '"edit method" to open the method\'s source in editor', '"cd object" to navigate into an object', '"show_source method" to view source code', '"copy expr" to copy the output to clipboard', '"debug" to start integration with the "debug" gem', '"history -g pattern" to search history', ].freeze
Class Method Summary collapse
Class Method Details
.display ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/irb/startup_message.rb', line 22 def display logo_lines = load_logo info_lines = build_info_lines output = if logo_lines combine_logo_and_info(logo_lines, info_lines) else info_lines.join("\n") end # Add a blank line to not immediately touch warning messages puts puts output puts end |