Class: ERB
- Inherits:
-
Object
- Object
- ERB
- 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
-
#initialize(str, *args) ⇒ ERB
constructor
A new instance of ERB.
- #result(*args) ⇒ Object
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 |