summaryrefslogtreecommitdiff
path: root/lib/irb/command/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/command/base.rb')
-rw-r--r--lib/irb/command/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/command/base.rb b/lib/irb/command/base.rb
index b078b48237..1d406630a2 100644
--- a/lib/irb/command/base.rb
+++ b/lib/irb/command/base.rb
@@ -18,12 +18,12 @@ module IRB
class << self
def category(category = nil)
@category = category if category
- @category
+ @category || "No category"
end
def description(description = nil)
@description = description if description
- @description
+ @description || "No description provided."
end
def help_message(help_message = nil)