Class: Yoda::Commands::Infer

Inherits:
Base
  • Object
show all
Defined in:
lib/yoda/commands/infer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

run

Constructor Details

#initialize(filename_with_position) ⇒ Infer

Returns a new instance of Infer.

Parameters:

  • filename_with_position (String)

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



7
8
9
# File 'lib/yoda/commands/infer.rb', line 7

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.



4
5
6
# File 'lib/yoda/commands/infer.rb', line 4

def filename_with_position
  @filename_with_position
end

Instance Method Details

#runObject



11
12
13
14
# File 'lib/yoda/commands/infer.rb', line 11

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