Class: Yoda::Commands::Complete

Inherits:
Base
  • Object
show all
Includes:
FileCursorParsable
Defined in:
lib/yoda/commands/complete.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

run

Constructor Details

#initialize(filename_with_position) ⇒ Complete

Returns a new instance of Complete.

Parameters:

  • filename_with_position (String)

    position representation with the format ‘path/to/file:line_num:character_num`



9
10
11
# File 'lib/yoda/commands/complete.rb', line 9

def initialize(filename_with_position)
  @filename_with_position = filename_with_position
end

Instance Attribute Details

#filename_with_positionObject (readonly)

Returns the value of attribute filename_with_position.



6
7
8
# File 'lib/yoda/commands/complete.rb', line 6

def filename_with_position
  @filename_with_position
end

Instance Method Details

#runObject



13
14
15
16
# File 'lib/yoda/commands/complete.rb', line 13

def run
  project.build_cache
  puts create_signature_help(worker.current_node_signature)
end