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



279
280
281
# File 'lib/delorean/nodes.rb', line 279

def check(_context, *)
  []
end

#rewrite(_context) ⇒ Object

Delorean literals have same syntax as Ruby



284
285
286
# File 'lib/delorean/nodes.rb', line 284

def rewrite(_context)
  text_value
end