Class: EbnfExpression::KlassProperty

Inherits:
Base
  • Object
show all
Defined in:
lib/pdoc/parser/ebnf_expression_nodes.rb

Instance Method Summary collapse

Methods inherited from Base

#full_name, #inspect, #returns, #to_s

Instance Method Details

#klass_nameObject



131
132
133
# File 'lib/pdoc/parser/ebnf_expression_nodes.rb', line 131

def klass_name
  js_namespace.to_a.slice(-2)
end

#nameObject



135
136
137
# File 'lib/pdoc/parser/ebnf_expression_nodes.rb', line 135

def name
  js_namespace.to_a.last
end

#namespaceObject



139
140
141
# File 'lib/pdoc/parser/ebnf_expression_nodes.rb', line 139

def namespace
  js_namespace.to_a.slice(0..-2).join(".")
end

#signatureObject



143
144
145
# File 'lib/pdoc/parser/ebnf_expression_nodes.rb', line 143

def signature
  "#{namespace}.#{name}"
end