lib/thor/base.rb in thor-0.12.3 vs lib/thor/base.rb in thor-0.13.0
- old
+ new
@@ -6,10 +6,13 @@
require 'thor/parser'
require 'thor/task'
require 'thor/util'
class Thor
+ autoload :Actions, 'thor/actions'
+ autoload :RakeCompat, 'thor/rake_compat'
+
# Shortcuts for help.
HELP_MAPPINGS = %w(-h -? --help -D)
# Thor methods that should not be overwritten by the user.
THOR_RESERVED_WORDS = %w(invoke shell options behavior root destination_root relative_root
@@ -91,9 +94,21 @@
end
end
module ClassMethods
attr_accessor :debugging
+
+ def attr_reader(*) #:nodoc:
+ no_tasks { super }
+ end
+
+ def attr_writer(*) #:nodoc:
+ no_tasks { super }
+ end
+
+ def attr_accessor(*) #:nodoc:
+ no_tasks { super }
+ end
# Adds an argument to the class and creates an attr_accessor for it.
#
# Arguments are different from options in several aspects. The first one
# is how they are parsed from the command line, arguments are retrieved