Class: Watson::Formatters::JsonFormatter
- Inherits:
-
BaseFormatter
- Object
- BaseFormatter
- Watson::Formatters::JsonFormatter
- Defined in:
- lib/watson/formatters/json_formatter.rb
Constant Summary
Constants included from Watson
BLUE, BOLD, CYAN, 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 |
# File 'lib/watson/formatters/json_formatter.rb', line 5 def run(structure) debug_print "#{self} : #{__method__}\n" File.open(@config.tmp_file, 'w') do |f| f.write(structure.to_json) end end |