📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 00:11:25
📂
/ (Root)
/
opt
/
alt
/
ruby33
/
share
/
ruby
/
irb
/
command
📍 /opt/alt/ruby33/share/ruby/irb/command
🔄 Refresh
✏️
Editing: base.rb
Read Only
# frozen_string_literal: true # # nop.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) # module IRB # :stopdoc: module Command class CommandArgumentError < StandardError; end def self.extract_ruby_args(*args, **kwargs) throw :EXTRACT_RUBY_ARGS, [args, kwargs] end class Base class << self def category(category = nil) @category = category if category @category || "No category" end def description(description = nil) @description = description if description @description || "No description provided." end def help_message(help_message = nil) @help_message = help_message if help_message @help_message end private def highlight(text) Color.colorize(text, [:BOLD, :BLUE]) end end def self.execute(irb_context, arg) new(irb_context).execute(arg) rescue CommandArgumentError => e puts e.message end def initialize(irb_context) @irb_context = irb_context end attr_reader :irb_context def execute(arg) #nop end end Nop = Base end # :startdoc: end
💾 Save Changes
❌ Cancel