Class: Delorean::Literal

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

Direct Known Subclasses

DString, IString

Instance Method Summary collapse

Instance Method Details

#check(_context) ⇒ Object



287
288
289
# File 'lib/delorean/nodes.rb', line 287

def check(_context, *)
  []
end

#rewrite(_context) ⇒ Object

Delorean literals have same syntax as Ruby



292
293
294
# File 'lib/delorean/nodes.rb', line 292

def rewrite(_context)
  text_value
end