Class: AutomateIt::TemplateManager::ERB
- Inherits:
-
BaseDriver
- Object
- Common
- Plugin::Base
- Plugin::Driver
- BaseDriver
- AutomateIt::TemplateManager::ERB
- Defined in:
- lib/automateit/template_manager/erb.rb
Overview
TemplateManager::ERB
Renders ERB templates for TemplateManager.
Constant Summary
Constants inherited from Plugin::Driver
Plugin::Driver::BASE_DRIVER_NAME
Constants included from Constants
Constants::HELPERS_DIR, Constants::INSTALL_DIR, Constants::PERROR, Constants::PEXEC, Constants::PNOTE, Constants::WARNING_BOILERPLATE
Instance Attribute Summary
Attributes inherited from BaseDriver
Attributes inherited from Plugin::Driver
Attributes inherited from Common
Instance Method Summary collapse
-
#render(*options) ⇒ Object
See documentation for TemplateManager#render.
-
#suitability(method, *args) ⇒ Object
:nodoc:.
Methods inherited from BaseDriver
Methods inherited from Plugin::Driver
abstract_driver, #available?, base_driver, base_driver?, depends_on, inherited, manager_token, #setup
Methods inherited from Plugin::Base
Methods inherited from Common
#initialize, #log, #nitpick, #noop, #noop=, #noop?, #preview, #preview=, #preview?, #preview_for, #setup, #superuser?, #writing, #writing=, #writing?
Constructor Details
This class inherits a constructor from AutomateIt::Common
Instance Method Details
#render(*options) ⇒ Object
See documentation for TemplateManager#render
12 13 14 15 16 |
# File 'lib/automateit/template_manager/erb.rb', line 12 def render(*) return _render_helper(*) do |o| HelpfulERB.new(o[:text], o[:filename]).result(o[:binder]) end end |
#suitability(method, *args) ⇒ Object
:nodoc:
7 8 9 |
# File 'lib/automateit/template_manager/erb.rb', line 7 def suitability(method, *args) # :nodoc: return 1 end |