Class: CocoaPods::AppGroup::Template
- Inherits:
-
Object
- Object
- CocoaPods::AppGroup::Template
- Defined in:
- lib/cocoapods/app_group/template.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #call(dest) ⇒ Object
-
#initialize(path) ⇒ Template
constructor
A new instance of Template.
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
#path ⇒ Object (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 |