Class: LabClient::Generator::TemplateHelper
- Inherits:
-
Object
- Object
- LabClient::Generator::TemplateHelper
- Includes:
- TemplateMethods, Logger
- 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
Methods included from Logger
Constructor Details
#initialize(client, opts = {}) ⇒ TemplateHelper
Returns a new instance of TemplateHelper.
28 29 30 31 32 |
# File 'lib/labclient/generator/template_helper.rb', line 28 def initialize(client, opts = {}) @client = client self.opts = opts setup end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
21 22 23 |
# File 'lib/labclient/generator/template_helper.rb', line 21 def client @client end |
#opts ⇒ Object
Returns the value of attribute opts.
22 23 24 |
# File 'lib/labclient/generator/template_helper.rb', line 22 def opts @opts end |
Instance Method Details
#inspect ⇒ Object
24 25 26 |
# File 'lib/labclient/generator/template_helper.rb', line 24 def inspect "#<LabClient::Template #{self.class.to_s.demodulize}>" end |
#setup ⇒ Object
34 35 36 |
# File 'lib/labclient/generator/template_helper.rb', line 34 def setup # Blank Place Holder end |