Class: BELParser::Completion::BaseCompleter
- Inherits:
-
Object
- Object
- BELParser::Completion::BaseCompleter
- Includes:
- Parsers::AST::Sexp
- Defined in:
- lib/bel_parser/completion.rb
Direct Known Subclasses
AllFunctionCompleter, ExactMatchParameterCompleter, FunctionCompleter, NamespacePrefixCompleter, RelationshipCompleter, WildcardMatchParameterCompleter
Instance Method Summary collapse
- #complete(string_literal, caret_position, options = {}) ⇒ Object
-
#initialize(spec, search, namespaces) ⇒ BaseCompleter
constructor
A new instance of 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
#initialize(spec, search, namespaces) ⇒ BaseCompleter
Returns a new instance of BaseCompleter.
606 607 608 609 610 |
# File 'lib/bel_parser/completion.rb', line 606 def initialize(spec, search, namespaces) @spec = spec @search = search @namespaces = namespaces end |
Instance Method Details
#complete(string_literal, caret_position, options = {}) ⇒ Object
612 613 614 |
# File 'lib/bel_parser/completion.rb', line 612 def complete(string_literal, caret_position, = {}) raise NotImplementedError, "#{__method__} is not implemented." end |