Class: LabClient::Generator::TemplateHelper

Inherits:
Object
  • Object
show all
Includes:
TemplateMethods
Defined in:
lib/labclient/generator/template_helper.rb

Overview

Common Helper Class

Direct Known Subclasses

GroupTemplateHelper

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject (readonly)

Returns the value of attribute client.



20
21
22
# File 'lib/labclient/generator/template_helper.rb', line 20

def client
  @client
end

#optsObject

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

#inspectObject



23
24
25
# File 'lib/labclient/generator/template_helper.rb', line 23

def inspect
  "#<LabClient::Template #{self.class.to_s.demodulize}>"
end

#setupObject



33
34
35
# File 'lib/labclient/generator/template_helper.rb', line 33

def setup
  # Blank Place Holder
end