Class: Erbgood::ErbBindingCheck
- Inherits:
-
Object
- Object
- Erbgood::ErbBindingCheck
- Defined in:
- lib/erbgood/erb_binding_check.rb
Instance Method Summary collapse
- #error ⇒ Object
-
#initialize(bindin, erb) ⇒ ErbBindingCheck
constructor
A new instance of ErbBindingCheck.
Constructor Details
#initialize(bindin, erb) ⇒ ErbBindingCheck
Returns a new instance of ErbBindingCheck.
7 8 9 10 |
# File 'lib/erbgood/erb_binding_check.rb', line 7 def initialize(bindin, erb) @bindin = bindin @erb = erb end |
Instance Method Details
#error ⇒ Object
12 13 14 15 16 17 |
# File 'lib/erbgood/erb_binding_check.rb', line 12 def error ERB.new(@erb).result(@bindin) nil rescue => detail detail end |