diff options
Diffstat (limited to 'lib/irb')
-rw-r--r-- | lib/irb/cmd/chws.rb | 4 | ||||
-rw-r--r-- | lib/irb/cmd/fork.rb | 2 | ||||
-rw-r--r-- | lib/irb/cmd/help.rb | 2 | ||||
-rw-r--r-- | lib/irb/cmd/load.rb | 6 | ||||
-rw-r--r-- | lib/irb/cmd/pushws.rb | 6 | ||||
-rw-r--r-- | lib/irb/cmd/subirb.rb | 8 | ||||
-rw-r--r-- | lib/irb/notifier.rb | 6 | ||||
-rw-r--r-- | lib/irb/output-method.rb | 2 |
8 files changed, 18 insertions, 18 deletions
diff --git a/lib/irb/cmd/chws.rb b/lib/irb/cmd/chws.rb index 606e0c52a9..e93c976f82 100644 --- a/lib/irb/cmd/chws.rb +++ b/lib/irb/cmd/chws.rb @@ -17,13 +17,13 @@ require "irb/ext/change-ws.rb" module IRB module ExtendCommand - class CurrentWorkingWorkspace<Nop + class CurrentWorkingWorkspace < Nop def execute(*obj) irb_context.main end end - class ChangeWorkspace<Nop + class ChangeWorkspace < Nop def execute(*obj) irb_context.change_workspace(*obj) irb_context.main diff --git a/lib/irb/cmd/fork.rb b/lib/irb/cmd/fork.rb index 552c3962f6..ae4d51b5d1 100644 --- a/lib/irb/cmd/fork.rb +++ b/lib/irb/cmd/fork.rb @@ -14,7 +14,7 @@ # :stopdoc: module IRB module ExtendCommand - class Fork<Nop + class Fork < Nop def execute pid = send ExtendCommand.irb_original_method_name("fork") unless pid diff --git a/lib/irb/cmd/help.rb b/lib/irb/cmd/help.rb index 7a09c396e1..db2bd567e5 100644 --- a/lib/irb/cmd/help.rb +++ b/lib/irb/cmd/help.rb @@ -16,7 +16,7 @@ require "irb/cmd/nop.rb" # :stopdoc: module IRB module ExtendCommand - class Help<Nop + class Help < Nop begin Ri = RDoc::RI::Driver.new rescue SystemExit diff --git a/lib/irb/cmd/load.rb b/lib/irb/cmd/load.rb index e3b84dad79..f800b741eb 100644 --- a/lib/irb/cmd/load.rb +++ b/lib/irb/cmd/load.rb @@ -16,7 +16,7 @@ require "irb/ext/loader" # :stopdoc: module IRB module ExtendCommand - class Load<Nop + class Load < Nop include IrbLoader def execute(file_name, priv = nil) @@ -24,7 +24,7 @@ module IRB end end - class Require<Nop + class Require < Nop include IrbLoader def execute(file_name) @@ -55,7 +55,7 @@ module IRB end end - class Source<Nop + class Source < Nop include IrbLoader def execute(file_name) source_file(file_name) diff --git a/lib/irb/cmd/pushws.rb b/lib/irb/cmd/pushws.rb index aa14430ce4..ffe55abed6 100644 --- a/lib/irb/cmd/pushws.rb +++ b/lib/irb/cmd/pushws.rb @@ -16,20 +16,20 @@ require "irb/ext/workspaces.rb" # :stopdoc: module IRB module ExtendCommand - class Workspaces<Nop + class Workspaces < Nop def execute(*obj) irb_context.workspaces.collect{|ws| ws.main} end end - class PushWorkspace<Workspaces + class PushWorkspace < Workspaces def execute(*obj) irb_context.push_workspace(*obj) super end end - class PopWorkspace<Workspaces + class PopWorkspace < Workspaces def execute(*obj) irb_context.pop_workspace(*obj) super diff --git a/lib/irb/cmd/subirb.rb b/lib/irb/cmd/subirb.rb index f29548b88f..c1602f6e45 100644 --- a/lib/irb/cmd/subirb.rb +++ b/lib/irb/cmd/subirb.rb @@ -15,25 +15,25 @@ require "irb/ext/multi-irb" # :stopdoc: module IRB module ExtendCommand - class IrbCommand<Nop + class IrbCommand < Nop def execute(*obj) IRB.irb(nil, *obj) end end - class Jobs<Nop + class Jobs < Nop def execute IRB.JobManager end end - class Foreground<Nop + class Foreground < Nop def execute(key) IRB.JobManager.switch(key) end end - class Kill<Nop + class Kill < Nop def execute(*keys) IRB.JobManager.kill(*keys) end diff --git a/lib/irb/notifier.rb b/lib/irb/notifier.rb index 9d8de82e69..a21e865f2e 100644 --- a/lib/irb/notifier.rb +++ b/lib/irb/notifier.rb @@ -113,7 +113,7 @@ module IRB # create a new composite notifier. Using the first composite notifier # object you create, sibling notifiers can be initialized with # #def_notifier. - class CompositeNotifier<AbstractNotifier + class CompositeNotifier < AbstractNotifier # Create a new composite notifier object with the given +prefix+, and # +base_notifier+ to use for output. def initialize(prefix, base_notifier) @@ -174,7 +174,7 @@ module IRB # A leveled notifier is comparable to the composite group from # CompositeNotifier#notifiers. - class LeveledNotifier<AbstractNotifier + class LeveledNotifier < AbstractNotifier include Comparable # Create a new leveled notifier with the given +base+, and +prefix+ to @@ -212,7 +212,7 @@ module IRB # # This notifier is used as the +zero+ index, or level +0+, for # CompositeNotifier#notifiers, and will not output messages of any sort. - class NoMsgNotifier<LeveledNotifier + class NoMsgNotifier < LeveledNotifier # Creates a new notifier that should not be used to output messages. def initialize @base_notifier = nil diff --git a/lib/irb/output-method.rb b/lib/irb/output-method.rb index 7d64851698..935a127d0a 100644 --- a/lib/irb/output-method.rb +++ b/lib/irb/output-method.rb @@ -82,7 +82,7 @@ module IRB end # A standard output printer - class StdioOutputMethod<OutputMethod + class StdioOutputMethod < OutputMethod # Prints the given +opts+ to standard output, see IO#print for more # information. def print(*opts) |