Class: CPS::ErbHelper
- Inherits:
-
Object
- Object
- CPS::ErbHelper
- Defined in:
- lib/cps-client/erb_helper.rb
Class Method Summary collapse
Class Method Details
.build(file, _class) ⇒ Object
5 6 7 8 9 |
# File 'lib/cps-client/erb_helper.rb', line 5 def self.build(file, _class) path = File.dirname(__FILE__) + "/../erb/#{file}.erb" rhtml = ERB.new(File.read(path)) rhtml.result(_class.get_binding) end |