Class: VER::Executor::ExCommandTYARD

Inherits:
Entry
  • Object
show all
Defined in:
lib/command_t/ex/command_t_yard.rb

Constant Summary collapse

Registry =
::YARD::Registry

Instance Method Summary collapse

Instance Method Details

#action(selected) ⇒ Object



11
12
13
14
15
# File 'lib/command_t/ex/command_t_yard.rb', line 11

def action(selected)
  obj = Registry.path_hash[selected] or throw :invalid
  VER.find_or_create_buffer(obj.file, obj.line)
  callback.destroy(false)
end

#choices(text) ⇒ Object



3
4
5
# File 'lib/command_t/ex/command_t_yard.rb', line 3

def choices(text)
  @matcher.sorted_matches_for(text, {})
end

#setupObject



7
8
9
# File 'lib/command_t/ex/command_t_yard.rb', line 7

def setup
  @matcher = CommandT::Matcher.new(Registry, always_show_dot_files: true)
end