Class: ERB

Inherits:
Object
  • Object
show all
Defined in:
lib/carps/util/init.rb

Overview

Requiring this file cripples ERB

This is because it does not work with $SAFE = 1 and this is not checked by highline

Instance Method Summary collapse

Constructor Details

#initialize(str, *args) ⇒ ERB

Returns a new instance of ERB.



32
33
34
# File 'lib/carps/util/init.rb', line 32

def initialize str, *args
   @res = str
end

Instance Method Details

#result(*args) ⇒ Object



36
37
38
# File 'lib/carps/util/init.rb', line 36

def result *args
   @res
end