Method: YARD::CodeObjects::NamespaceObject#attributes

Defined in:
lib/yard/code_objects/namespace_object.rb

#attributesHash (readonly)

A hash containing two keys, class and instance, each containing the attribute name with a { :read, :write } hash for the read and write objects respectively.

Examples:

The attributes of an object

>> Registry.at('YARD::Docstring').attributes
=> {
      :class => { },
      :instance => {
        :ref_tags => {
          :read => #<yardoc method YARD::Docstring#ref_tags>,
          :write => nil
        },
        :object => {
          :read => #<yardoc method YARD::Docstring#object>,
          :write => #<yardoc method YARD::Docstring#object=>
         },
         ...
      }
    }

Returns:

  • (Hash)

    a list of methods


39
40
41
# File 'lib/yard/code_objects/namespace_object.rb', line 39

def attributes
  @attributes
end