Class: Nineteen::Eighty::Two::Formats::JSON
- Inherits:
-
Object
- Object
- Nineteen::Eighty::Two::Formats::JSON
- Defined in:
- lib/nineteen/eighty/two/formatters/json_formatter.rb
Class Method Summary collapse
Class Method Details
.format(text) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/nineteen/eighty/two/formatters/json_formatter.rb', line 6 def self.format text { id: text.to_s.gsub('"', ''), data: Spectrum[*text] }.to_json end |