Class: Documentation::Klass

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

Instance Method Summary collapse

Methods inherited from Namespace

#mixin?, #mixins

Methods inherited from Base

#alias_of, #deprecated?, #description, #doc_parent, #ebnf_expressions, #full_name, #inspect, #klass, #klass_name, #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

#klass?Boolean

Returns:

  • (Boolean)


460
461
462
# File 'lib/pdoc/parser/documentation_nodes.rb', line 460

def klass?
  true
end

#superclassObject



464
465
466
467
# File 'lib/pdoc/parser/documentation_nodes.rb', line 464

def superclass
  sc = ebnf.superklass
  sc.text_value if sc
end

#typeObject



469
470
471
# File 'lib/pdoc/parser/documentation_nodes.rb', line 469

def type
  "class"
end