Method: Vedeu::Templating::Decoder#unwrap

Defined in:
lib/vedeu/templating/decoder.rb

#unwrapString (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Removes delimiters from the start and end of the data.

Returns:

  • (String)


70
71
72
# File 'lib/vedeu/templating/decoder.rb', line 70

def unwrap
  data.gsub(/({{)|(}})/, '')
end