Class: OpenAPISourceTools::HelperTask
- Inherits:
-
Object
- Object
- OpenAPISourceTools::HelperTask
- Includes:
- TaskInterface
- Defined in:
- lib/openapi/sourcetools/helper.rb
Overview
Task class to add an Helper instance to Gen.h, for convenience.
Instance Method Summary collapse
Methods included from TaskInterface
#executable, #output_name, #system
Instance Method Details
#discard ⇒ Object
130 131 132 |
# File 'lib/openapi/sourcetools/helper.rb', line 130 def discard true end |
#generate(_context_binding) ⇒ Object
126 127 128 |
# File 'lib/openapi/sourcetools/helper.rb', line 126 def generate(_context_binding) Gen.h = Helper.new(Gen.doc) if Gen.h.nil? end |