Class: Delorean::IString

Inherits:
Literal
  • Object
show all
Defined in:
lib/delorean/nodes.rb

Instance Method Summary collapse

Methods inherited from Literal

#check

Instance Method Details

#rewrite(_context) ⇒ Object



311
312
313
314
315
316
317
# File 'lib/delorean/nodes.rb', line 311

def rewrite(_context)
  # FIXME: hacky to just fail
  raise 'String interpolation not supported' if text_value =~ /\#\{.*\}/

  # FIXME: syntax check?
  text_value
end