Class: Fastlane::ErbalT
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Fastlane::ErbalT
- Defined in:
- fastlane/lib/fastlane/erb_template_helper.rb
Instance Method Summary collapse
-
#initialize(hash, trim_mode = nil) ⇒ ErbalT
constructor
A new instance of ErbalT.
- #render(template) ⇒ Object
Constructor Details
#initialize(hash, trim_mode = nil) ⇒ ErbalT
Returns a new instance of ErbalT.
21 22 23 24 |
# File 'fastlane/lib/fastlane/erb_template_helper.rb', line 21 def initialize(hash, trim_mode = nil) super(hash) @trim_mode = trim_mode end |
Instance Method Details
#render(template) ⇒ Object
26 27 28 |
# File 'fastlane/lib/fastlane/erb_template_helper.rb', line 26 def render(template) ERB.new(template, nil, @trim_mode).result(binding) end |