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



319
320
321
322
323
324
325
326
327
# File 'lib/delorean/nodes.rb', line 319

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

  # FIXME: syntax check?
  text_value
end