Class: EbnfExpression::Namespace
- Inherits:
-
Base
- Object
- Treetop::Runtime::SyntaxNode
- Base
- EbnfExpression::Namespace
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_name ⇒ Object
193
194
195
|
# File 'lib/pdoc/parser/ebnf_expression_nodes.rb', line 193
def klass_name
nil
end
|
#mixins ⇒ Object
205
206
207
208
209
210
211
212
|
# File 'lib/pdoc/parser/ebnf_expression_nodes.rb', line 205
def mixins
second_line = elements.last
if second_line.empty?
[]
else
[second_line.js_namespace].concat(second_line.more.elements.map{|e| e.elements.last})
end
end
|
#name ⇒ Object
197
198
199
|
# File 'lib/pdoc/parser/ebnf_expression_nodes.rb', line 197
def name
js_namespace.to_a.last
end
|
#namespace ⇒ Object
201
202
203
|
# File 'lib/pdoc/parser/ebnf_expression_nodes.rb', line 201
def namespace
js_namespace.to_a.slice(0..-2).join(".")
end
|