Sha256: c5c8a87bd9d3a4128efac9df0b8b0edeea5c18ea5765ab4e88ceaeea0bc1a1c2
Contents?: true
Size: 592 Bytes
Versions: 30
Compression:
Stored size: 592 Bytes
Contents
# frozen_string_literal: true require 'irb' module AppInfo class Shell PREFIX = "app-info (#{AppInfo::VERSION})" PROMPT = { PROMPT_I: "#{PREFIX}> ", PROMPT_S: "#{PREFIX}> ", PROMPT_C: "#{PREFIX}> ", PROMPT_N: "#{PREFIX}> ", RETURN: "=> %s\n" }.freeze class << self def run setup irb = IRB::Irb.new irb.run end def setup IRB.setup nil IRB.conf[:PROMPT][:APPINFO] = PROMPT IRB.conf[:PROMPT_MODE] = :APPINFO IRB.conf[:AUTO_INDENT] = true end end end end
Version data entries
30 entries across 30 versions & 1 rubygems