lib/mcg/signal_analysis/dsp_json.rb
def to_json(*a)
          {
            'json_class' => self.class.name,
            'data' => self.to_h
          }.to_json(*a)
        end
JSON callback (invoked by JSON.generate).
Creates a Hash representing the JSON object.
JSON callback (invoked by JSON.generate).
Creates a Hash representing the JSON object.
JSON callback ( invoked by JSON . generate ) . Creates a Hash representing the JSON object .
def to_json(*a)
          {
            'json_class' => self.class.name,
            'data' => self.to_h
          }.to_json(*a)
        end
def to_json ( * a ) { 'json_class' => self . class . name , 'data' => self . to_h } . to_json ( * a ) end
JSON callback (invoked by JSON.generate).
JSON callback ( invoked by JSON . generate ) .
a