Class: MVCLI::ERB
- Inherits:
-
Object
- Object
- MVCLI::ERB
- Defined in:
- lib/mvcli/erb.rb
Defined Under Namespace
Instance Method Summary collapse
- #compile(string, filename = '(erb)') ⇒ Object
-
#initialize ⇒ ERB
constructor
A new instance of ERB.
Constructor Details
#initialize ⇒ ERB
Returns a new instance of ERB.
5 6 7 8 9 10 11 |
# File 'lib/mvcli/erb.rb', line 5 def initialize @compiler = ::ERB::Compiler.new("<>") @compiler.pre_cmd = [""] @compiler.put_cmd = "@_erbout <<" @compiler.insert_cmd = "@_erbout <<" @compiler.post_cmd = ["nil"] end |