Class: LabClient::Generator::TemplateHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/labclient/generator/templates/template.rb

Overview

Common Helper Class

Direct Known Subclasses

Pages

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject (readonly)

Returns the value of attribute client.



5
6
7
# File 'lib/labclient/generator/templates/template.rb', line 5

def client
  @client
end

#optsObject

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

#inspectObject



8
9
10
# File 'lib/labclient/generator/templates/template.rb', line 8

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

#setupObject



18
19
20
# File 'lib/labclient/generator/templates/template.rb', line 18

def setup
  # Blank Place Holder
end