Module: Ronin::Masscan::Converters Private
- Defined in:
 - lib/ronin/masscan/converters.rb,
lib/ronin/masscan/converters/csv.rb,
lib/ronin/masscan/converters/json.rb 
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Constant Summary collapse
- FORMATS =
          
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Mapping of formats to converter modules.
 { json: JSON, csv: CSV }
Class Method Summary collapse
- 
  
    
      .[](format)  ⇒ Converters::JSON, Converters::CSV 
    
    
  
  
  
  
  
  
  
  private
  
    
Fetches the converter for the given format.
 
Class Method Details
.[](format) ⇒ Converters::JSON, Converters::CSV
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Fetches the converter for the given format.
      47 48 49 50 51  | 
    
      # File 'lib/ronin/masscan/converters.rb', line 47 def self.[](format) FORMATS.fetch(format) do raise(ArgumentError,"unsupported format: #{format.inspect}") end end  |