Class: CocoaPods::AppGroup::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods/app_group/template.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Template

Returns a new instance of Template.



8
9
10
# File 'lib/cocoapods/app_group/template.rb', line 8

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



6
7
8
# File 'lib/cocoapods/app_group/template.rb', line 6

def path
  @path
end

Instance Method Details

#call(dest) ⇒ Object



12
13
14
# File 'lib/cocoapods/app_group/template.rb', line 12

def call(dest)
  File.write dest, ERB.new(content).result(binding)
end