Class: Watson::Formatters::UniteFormatter
- Inherits:
-
BaseFormatter
- Object
- BaseFormatter
- Watson::Formatters::UniteFormatter
- Defined in:
- lib/watson/formatters/unite_formatter.rb
Constant Summary
Constants inherited from BaseFormatter
Constants included from Watson
BLUE, BOLD, CYAN, GLOBAL_DEBUG_OFF, GLOBAL_DEBUG_ON, GRAY, GREEN, MAGENTA, RED, RESET, UNDERLINE, VERSION, WHITE, YELLOW
Instance Method Summary collapse
Methods inherited from BaseFormatter
Methods included from Watson
Constructor Details
This class inherits a constructor from Watson::Formatters::BaseFormatter
Instance Method Details
#run(structure) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/watson/formatters/unite_formatter.rb', line 5 def run(structure) debug_print "#{self} : #{__method__}\n" candidates = generate_candidates(structure) File.open(@config.tmp_file, 'w') do |f| f.write(candidates.to_json) end end |