Class: Prmd::Generator
- Inherits:
-
Object
- Object
- Prmd::Generator
- Defined in:
- lib/prmd/core/generator.rb
Overview
Schema generator
Instance Method Summary collapse
- #generate(options = {}) ⇒ Object
-
#initialize(properties = {}) ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
#initialize(properties = {}) ⇒ Generator
Returns a new instance of Generator.
10 11 12 13 14 |
# File 'lib/prmd/core/generator.rb', line 10 def initialize(properties = {}) @properties = properties @base = properties.fetch(:base, {}) @template = properties.fetch(:template) end |