Class: Documentation::KlassMethod

Inherits:
Method
  • Object
show all
Defined in:
lib/pdoc/parser/documentation_nodes.rb

Instance Method Summary collapse

Methods inherited from Method

#arguments, #fires, #full_name, #methodized?, #name, #namespace_string, #returns, #serialize, #serialize_arguments, #serialize_signatures, #signature, #signatures

Methods inherited from Base

#alias_of, #deprecated?, #description, #doc_parent, #ebnf_expressions, #full_name, #inspect, #name, #namespace, #namespace_string, #parent_id, #related_to, #root, #section_name, #serialize, #signature, #src_code_line, #tags, #to_yaml

Methods included from Memoized

#avoid_infinite_method_added_loop, #memoize, #method_added

Instance Method Details

#klassObject



372
373
374
# File 'lib/pdoc/parser/documentation_nodes.rb', line 372

def klass
  namespace.is_a?(Klass) ? namespace : nil
end

#klass_nameObject



376
377
378
# File 'lib/pdoc/parser/documentation_nodes.rb', line 376

def klass_name
  klass ? klass.name : nil
end

#typeObject



380
381
382
# File 'lib/pdoc/parser/documentation_nodes.rb', line 380

def type
  "class method"
end