Class: LabClient::Generator::TemplateHelper
- Inherits:
-
Object
- Object
- LabClient::Generator::TemplateHelper
- Defined in:
- lib/labclient/generator/templates/template.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.
12 13 14 15 16 |
# File 'lib/labclient/generator/templates/template.rb', line 12 def initialize(client, opts = {}) @client = client self.opts = opts setup end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/labclient/generator/templates/template.rb', line 5 def client @client end |
#opts ⇒ Object
Returns the value of attribute opts.
6 7 8 |
# File 'lib/labclient/generator/templates/template.rb', line 6 def opts @opts end |
Instance Method Details
#inspect ⇒ Object
8 9 10 |
# File 'lib/labclient/generator/templates/template.rb', line 8 def inspect "#<LabClient::Template #{self.class.to_s.demodulize}>" end |
#setup ⇒ Object
18 19 20 |
# File 'lib/labclient/generator/templates/template.rb', line 18 def setup # Blank Place Holder end |