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



702
703
704
# File 'lib/delorean/nodes.rb', line 702

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

#rewrite(context) ⇒ Object



706
707
708
# File 'lib/delorean/nodes.rb', line 706

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