Class: YARD::CLI::Yardoc

Inherits:
Object
  • Object
show all
Defined in:
lib/yard-js/core_ext/yard/yardoc.rb

Instance Method Summary collapse

Instance Method Details

#general_options_yardjs(opts) ⇒ Object Also known as: general_options


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/yard-js/core_ext/yard/yardoc.rb', line 4

def general_options_yardjs(opts)
  general_options_orig(opts)

  opts.on('--define-class-expr EXPR') do |expr|
    YARDJS.options.define_class_expression = expr
  end

  opts.on('--update-class-expr EXPR') do |expr|
    YARDJS.options.update_class_expression = expr
  end

  opts.on('--mixin-module-expr EXPR') do |expr|
    YARDJS.options.mixin_module_expression = expr
  end
end