Class: Nitro::StandardMorpher

Inherits:
Morpher
  • Object
show all
Defined in:
lib/nitro/compiler/morphing.rb

Overview

A useful super class for morphers.

Direct Known Subclasses

IfMorpher, SelectedIfMorpher, TimesMorpher

Instance Method Summary collapse

Methods inherited from Morpher

#after_start, #before_end, #before_start, #initialize

Constructor Details

This class inherits a constructor from Nitro::Morpher

Instance Method Details

#after_end(buffer) ⇒ Object



37
38
39
40
# File 'lib/nitro/compiler/morphing.rb', line 37

def after_end(buffer)
  # gmosx: leave the leading space.
  buffer << " <?r end ?>"
end