Class: Pechkin::MessageBinding

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/pechkin/message_template.rb

Overview

Class to provide binding for ERB templating engine

Instance Method Summary collapse

Instance Method Details

#render_template(template) ⇒ Object



4
5
6
# File 'lib/pechkin/message_template.rb', line 4

def render_template(template)
  template.result(binding)
end