Class: Yoda::Services::CodeCompletion::KeywordProvider

Inherits:
BaseProvider
  • Object
show all
Defined in:
lib/yoda/services/code_completion/keyword_provider.rb

Constant Summary collapse

KEYWORDS =
%i(
  __ENCODING__
  __LINE__
  __FILE__
  BEGIN
  END
  alias
  and
  begin
  break
  case
  class
  def
  defined?
  do
  else
  elsif
  end
  ensure
  false
  for
  if
  in
  module
  next
  nil
  not
  or
  redo
  rescue
  retry
  return
  self
  then
  true
  undef
  unless
  until
  when
  while
  yield
)

Instance Attribute Summary

Attributes inherited from BaseProvider

#ast, #environment, #evaluator, #location

Instance Method Summary collapse

Methods inherited from BaseProvider

#initialize

Constructor Details

This class inherits a constructor from Yoda::Services::CodeCompletion::BaseProvider

Instance Method Details

#candidatesArray<Model::CompletionItem>

Returns constant candidates by using the current lexical scope.

Returns:



56
57
# File 'lib/yoda/services/code_completion/keyword_provider.rb', line 56

def candidates
end

#providable?true, false

Returns:

  • (true, false)


50
51
52
# File 'lib/yoda/services/code_completion/keyword_provider.rb', line 50

def providable?
  true
end