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



252
253
254
255
256
257
258
# File 'lib/delorean/nodes.rb', line 252

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

  # FIXME: syntax check?
  text_value
end