Class: Internal::ByteDecoder::Expression::Defined

Inherits:
Internal::ByteDecoder::Expression show all
Defined in:
lib/decompiler/vm/bytedecoder.rb

Instance Attribute Summary

Attributes inherited from Internal::ByteDecoder::Expression

#pc

Instance Method Summary collapse

Methods inherited from Internal::ByteDecoder::Expression

#<=>, #fmt

Constructor Details

#initialize(pc, arg) ⇒ Defined

Returns a new instance of Defined.



297
298
299
300
# File 'lib/decompiler/vm/bytedecoder.rb', line 297

def initialize(pc, arg)
  super(pc)
  @arg = arg
end

Instance Method Details

#precedenceObject



306
307
308
# File 'lib/decompiler/vm/bytedecoder.rb', line 306

def precedence
  return 1
end

#to_sObject



302
303
304
# File 'lib/decompiler/vm/bytedecoder.rb', line 302

def to_s
  return "defined?(#{@arg.to_s})"
end