Class: BELParser::Completion::BaseCompleter

Inherits:
Object
  • Object
show all
Includes:
Parsers::AST::Sexp
Defined in:
lib/bel_parser/completion.rb

Instance Method Summary collapse

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

Raises:

  • (NotImplementedError)


612
613
614
# File 'lib/bel_parser/completion.rb', line 612

def complete(string_literal, caret_position, options = {})
  raise NotImplementedError, "#{__method__} is not implemented."
end