Class: Delorean::UnOp

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

Overview

unary operator

Instance Method Summary collapse

Instance Method Details

#check(context) ⇒ Object



237
238
239
# File 'lib/delorean/nodes.rb', line 237

def check(context, *)
  e.check(context)
end

#rewrite(context) ⇒ Object



241
242
243
# File 'lib/delorean/nodes.rb', line 241

def rewrite(context)
  op.text_value + e.rewrite(context)
end