Class: Erbgood::ErbBindingCheck

Inherits:
Object
  • Object
show all
Defined in:
lib/erbgood/erb_binding_check.rb

Instance Method Summary collapse

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

#errorObject



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