Class: LabClient::Generator::TemplateHelper
- Inherits:
-
Object
- Object
- LabClient::Generator::TemplateHelper
- Includes:
- TemplateMethods
- Defined in:
- lib/labclient/generator/template_helper.rb
Overview
Common Helper Class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#opts ⇒ Object
Returns the value of attribute opts.
Instance Method Summary collapse
-
#initialize(client, opts = {}) ⇒ TemplateHelper
constructor
A new instance of TemplateHelper.
- #inspect ⇒ Object
- #setup ⇒ Object
Constructor Details
#initialize(client, opts = {}) ⇒ TemplateHelper
Returns a new instance of TemplateHelper.
27 28 29 30 31 |
# File 'lib/labclient/generator/template_helper.rb', line 27 def initialize(client, opts = {}) @client = client self.opts = opts setup end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
20 21 22 |
# File 'lib/labclient/generator/template_helper.rb', line 20 def client @client end |
#opts ⇒ Object
Returns the value of attribute opts.
21 22 23 |
# File 'lib/labclient/generator/template_helper.rb', line 21 def opts @opts end |
Instance Method Details
#inspect ⇒ Object
23 24 25 |
# File 'lib/labclient/generator/template_helper.rb', line 23 def inspect "#<LabClient::Template #{self.class.to_s.demodulize}>" end |
#setup ⇒ Object
33 34 35 |
# File 'lib/labclient/generator/template_helper.rb', line 33 def setup # Blank Place Holder end |