Module: Garcon::Interpolation
- Extended by:
- Interpolation
- Included in:
- Interpolation
- Defined in:
- lib/garcon/utility/interpolation.rb
Instance Method Summary collapse
-
#interpolate(item = self, parent = nil) ⇒ String
Interpolate provides a means of externally using Ruby string interpolation mechinism.
Instance Method Details
#interpolate(item = self, parent = nil) ⇒ String
Interpolate provides a means of externally using Ruby string interpolation mechinism.
44 45 46 47 |
# File 'lib/garcon/utility/interpolation.rb', line 44 def interpolate(item = self, parent = nil) item = render item, parent item.is_a?(Hash) ? ::Mash.new(item) : item end |