diff options
| author | Seba Gamboa <[email protected]> | 2015-09-25 19:20:28 -0300 |
|---|---|---|
| committer | Seba Gamboa <[email protected]> | 2015-09-25 19:20:28 -0300 |
| commit | eb09ea05366860a23dab47cb743172db42a4c12f (patch) | |
| tree | ba59979bdc5045658f797a9165143fdd16959329 /lib/yard/mruby/cli | |
| parent | 93bb5fa28b64459776f80d27ce4782754b741e48 (diff) | |
| download | yard-mruby-eb09ea05366860a23dab47cb743172db42a4c12f.tar.gz yard-mruby-eb09ea05366860a23dab47cb743172db42a4c12f.zip | |
Change default files. Closes #3
Diffstat (limited to 'lib/yard/mruby/cli')
| -rw-r--r-- | lib/yard/mruby/cli/yardoc.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/yard/mruby/cli/yardoc.rb b/lib/yard/mruby/cli/yardoc.rb new file mode 100644 index 0000000..b253428 --- /dev/null +++ b/lib/yard/mruby/cli/yardoc.rb @@ -0,0 +1,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 + |
