Class: RuboCop::Schema::Generator
- Inherits:
- 
      Object
      
        - Object
- RuboCop::Schema::Generator
 
- Includes:
- Helpers
- Defined in:
- lib/rubocop/schema/generator.rb
Instance Attribute Summary collapse
- 
  
    
      #schema  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Hash. 
Instance Method Summary collapse
- 
  
    
      #initialize(specs, document_loader)  ⇒ Generator 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Generator. 
Methods included from Helpers
#boolean, #deep_dup, #deep_merge, #http_get, #strip_html, #template, templates
Constructor Details
#initialize(specs, document_loader) ⇒ Generator
Returns a new instance of Generator.
| 20 21 22 23 24 25 26 | # File 'lib/rubocop/schema/generator.rb', line 20 def initialize(specs, document_loader) @specs = specs @loader = document_loader @schema = template('schema') @props = @schema.fetch('properties') generate end | 
Instance Attribute Details
#schema ⇒ Object (readonly)
Returns Hash.
| 16 17 18 | # File 'lib/rubocop/schema/generator.rb', line 16 def schema @schema end |