Class: Entitlements::ERB
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Entitlements::ERB
- Defined in:
- lib/entitlements.rb
Overview
Allows interpretation of ERB for the configuration file to make things less hokey.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.render_from_hash(template, hash) ⇒ Object
63 64 65 |
# File 'lib/entitlements.rb', line 63 def self.render_from_hash(template, hash) new(hash).render(template) end |
Instance Method Details
#render(template) ⇒ Object
67 68 69 |
# File 'lib/entitlements.rb', line 67 def render(template) ::ERB.new(template, nil, "-").result(binding) end |