Class: YARD::Tags::AttributeDirective

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

Instance Method Summary collapse

Instance Method Details

#create_attribute_data(object) ⇒ Object


39
40
41
42
43
44
45
# File 'lib/yard-js/core_ext/yard/tags.rb', line 39

def create_attribute_data(object)
  if object.tag(:constant)
    object.property_type = :literal
  else
    object.property_type = :object
  end
end

#method_nameObject


33
34
35
# File 'lib/yard-js/core_ext/yard/tags.rb', line 33

def method_name
  sanitized_tag_signature || handler.call_params.first
end

#method_signatureObject


37
# File 'lib/yard-js/core_ext/yard/tags.rb', line 37

def method_signature; method_name end