Class: BELParser::Completion::AllFunctionCompleter
- Inherits:
-
BaseCompleter
- Object
- BaseCompleter
- BELParser::Completion::AllFunctionCompleter
- Defined in:
- lib/bel_parser/completion.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from BaseCompleter
Methods included from Parsers::AST::Sexp
#annotation_definition, #argument, #blank_line, build, #comment, #comment_line, #document_property, #domain, #function, #identifier, #keyword, #list, #list_item, #multi_identifier, #name, #namespace_definition, #nested_statement, #object, #observed_term, #parameter, #pattern, #prefix, #relationship, #set, #simple_statement, #statement, #string, #subject, #term, #unset, #uri, #url, #value
Constructor Details
This class inherits a constructor from BELParser::Completion::BaseCompleter
Instance Method Details
#complete(_, _) ⇒ Object
670 671 672 673 674 675 676 |
# File 'lib/bel_parser/completion.rb', line 670 def complete(_, _) @spec.functions .sort_by { |function| function.long } .map { |function| make_completion(function) } end |