Class: OpenAPISourceTools::HelperTask

Inherits:
Object
  • Object
show all
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

#discardObject



89
90
91
# File 'lib/openapi/sourcetools/helper.rb', line 89

def discard
  true
end

#generate(_context_binding) ⇒ Object



85
86
87
# File 'lib/openapi/sourcetools/helper.rb', line 85

def generate(_context_binding)
  Gen.h = Helper.new(Gen.doc) if Gen.h.nil?
end