Class: Delorean::ListExpr

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

Direct Known Subclasses

SetExpr

Instance Method Summary collapse

Instance Method Details

#check(context) ⇒ Object



418
419
420
# File 'lib/delorean/nodes.rb', line 418

def check(context, *)
  defined?(args) ? args.check(context) : []
end

#rewrite(context) ⇒ Object



422
423
424
# File 'lib/delorean/nodes.rb', line 422

def rewrite(context)
  "[" + (defined?(args) ? args.rewrite(context) : "") + "]"
end