summaryrefslogtreecommitdiffhomepage
path: root/lib/yard/mruby/cli/yardoc.rb
blob: b253428b4922fc7d16d68dc2a5876d562539afe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module YARD::MRuby::CLI
  module Yardoc

    # Redefines default files for YARD::CLI::Yardoc
    def parse_arguments(*args)
      super(*args)
      self.files = %w{mrblib/**/*.rb src/**/*.c include/**/*.h} if self.files.empty?
    end
  end

  # Load Above modifications into YARD::CLI::Yardoc
  YARD::CLI::Yardoc.include Yardoc
end