Class: LabClient::Generator::TemplateHelper

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

Overview

Common Helper Class

Direct Known Subclasses

GroupTemplateHelper

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logger

#logger, logger, logger_setup

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

#clientObject (readonly)

Returns the value of attribute client.



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

def client
  @client
end

#optsObject

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

#inspectObject



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

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

#setupObject



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

def setup
  # Blank Place Holder
end