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



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