lib/inch/cli/yardopts_helper.rb in inch-0.4.10 vs lib/inch/cli/yardopts_helper.rb in inch-0.5.0.rc1
- old
+ new
@@ -6,21 +6,20 @@
# @return [Array<String>] list of excluded paths (regexp matches)
attr_accessor :excluded
VALID_YARD_SWITCHES = %w(--private --no-private --protected --no-public
- --plugin --load --safe --yardopts --no-yardopts
- --document --no-document)
+ --plugin --load --safe --yardopts --no-yardopts --document --no-document)
# Parses the option and gracefully handles invalid switches
#
# @param [OptionParser] opts the option parser object
# @param [Array<String>] args the arguments passed from input. This
# array will be modified.
# @return [void]
def parse_yardopts_options(opts, args)
- wrapper = YardoptsWrapper.new
+ wrapper = YardoptsWrapper.new()
dupped_args = args.dup
dupped_args.delete("--help")
dupped_args.delete_if do |arg|
arg =~ /^\-/ && !VALID_YARD_SWITCHES.include?(arg)
@@ -34,10 +33,10 @@
self.yard_files = wrapper.files
self.excluded = wrapper.excluded
end
def yardopts_options(opts)
- wrapper = YardoptsWrapper.new
+ wrapper = YardoptsWrapper.new()
wrapper.add_yardoc_options(opts)
end
class YardoptsWrapper < YARD::CLI::Yardoc
def add_yardoc_options(opts)