Class: YardSig::SigDirective

Inherits:
YARD::Tags::Directive
  • Object
show all
Defined in:
lib/yard-sig.rb

Instance Method Summary collapse

Instance Method Details

#callObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/yard-sig.rb', line 14

def call
  return unless object

  validate_arguments_forwarding!

  sig = Sig.new(tag.text, object.parameters, object.namespace.path)
  parser.tags += sig.to_tags
rescue Error => e
  log.warn(e.message)
end