Skip to content

Commit 4887ea8

Browse files
committed
Super up
1 parent 04d7560 commit 4887ea8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/thor/base.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def initialize(args = [], local_options = {}, config = {})
8989

9090
class << self
9191
def included(base) #:nodoc:
92+
super(base)
9293
base.extend ClassMethods
9394
base.send :include, Invocation
9495
base.send :include, Shell
@@ -596,13 +597,15 @@ def find_and_refresh_command(name) #:nodoc:
596597
# Everytime someone inherits from a Thor class, register the klass
597598
# and file into baseclass.
598599
def inherited(klass)
600+
super(klass)
599601
Thor::Base.register_klass_file(klass)
600602
klass.instance_variable_set(:@no_commands, false)
601603
end
602604

603605
# Fire this callback whenever a method is added. Added methods are
604606
# tracked as commands by invoking the create_command method.
605607
def method_added(meth)
608+
super(meth)
606609
meth = meth.to_s
607610

608611
if meth == "initialize"

lib/thor/rake_compat.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def self.rake_classes
2525
end
2626

2727
def self.included(base)
28+
super(base)
2829
# Hack. Make rakefile point to invoker, so rdoc task is generated properly.
2930
rakefile = File.basename(caller[0].match(/(.*):\d+/)[1])
3031
Rake.application.instance_variable_set(:@rakefile, rakefile)

0 commit comments

Comments
 (0)